Search.focus() is the new Search.open()

This commit is contained in:
Devin Howard 2016-10-02 10:09:13 +08:00
parent 05c1e4c60d
commit bc139608c2
6 changed files with 6 additions and 12 deletions

View file

@ -11,6 +11,5 @@
<% content_for :mobile_title, "Recently Active" %> <% content_for :mobile_title, "Recently Active" %>
Metamaps.currentSection = "explore"; Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.open(); Metamaps.GlobalUI.Search.focus();
Metamaps.GlobalUI.Search.lock();
</script> </script>

View file

@ -11,6 +11,5 @@
<% content_for :mobile_title, "Featured Maps" %> <% content_for :mobile_title, "Featured Maps" %>
Metamaps.currentSection = "explore"; Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.open(); Metamaps.GlobalUI.Search.focus();
Metamaps.GlobalUI.Search.lock();
</script> </script>

View file

@ -14,6 +14,5 @@
<% content_for :mobile_title, @user.name %> <% content_for :mobile_title, @user.name %>
Metamaps.currentSection = "explore"; Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.open(); Metamaps.GlobalUI.Search.focus();
Metamaps.GlobalUI.Search.lock();
</script> </script>

View file

@ -11,6 +11,5 @@
<% content_for :mobile_title, "My Maps" %> <% content_for :mobile_title, "My Maps" %>
Metamaps.currentSection = "explore"; Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.open(); Metamaps.GlobalUI.Search.focus();
Metamaps.GlobalUI.Search.lock();
</script> </script>

View file

@ -11,6 +11,5 @@
<% content_for :mobile_title, "Shared With Me" %> <% content_for :mobile_title, "Shared With Me" %>
Metamaps.currentSection = "explore"; Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.open(); Metamaps.GlobalUI.Search.focus();
Metamaps.GlobalUI.Search.lock();
</script> </script>

View file

@ -11,6 +11,5 @@
<% content_for :mobile_title, "Starred Maps" %> <% content_for :mobile_title, "Starred Maps" %>
Metamaps.currentSection = "explore"; Metamaps.currentSection = "explore";
Metamaps.GlobalUI.Search.open(); Metamaps.GlobalUI.Search.focus();
Metamaps.GlobalUI.Search.lock();
</script> </script>