diff --git a/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb b/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb index 43febf79..27812c57 100644 --- a/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb +++ b/app/assets/javascripts/src/Metamaps.GlobalUI.js.erb @@ -655,14 +655,11 @@ Metamaps.GlobalUI.Search = { self.limitMapsToMe = !self.limitMapsToMe; } - // set the value of the search equal to itself to retrigger the autocomplete event - self.isOpen = false; + // set the value of the search equal to itself to retrigger the + // autocomplete event var searchQuery = $('.sidebarSearchField.tt-input').val(); $(".sidebarSearchField").typeahead('val', '') - $(".sidebarSearchField").focus().typeahead('val', searchQuery).focus(); - setTimeout(function () { - self.isOpen = true; - }, 2000); + .typeahead('val', searchQuery); }); // when the user clicks minimize section, hide the results for that section diff --git a/app/assets/stylesheets/search.scss.erb b/app/assets/stylesheets/search.scss.erb index efd196cb..1d7ec7c4 100644 --- a/app/assets/stylesheets/search.scss.erb +++ b/app/assets/stylesheets/search.scss.erb @@ -136,6 +136,7 @@ top: 40px !important; background: #F5F5F5; width: 472px; + max-height: 25em; overflow-y: auto; overflow-x: visible; box-shadow: 0 10px 10px rgba(0,0,0,0.19), 0 6px 3px rgba(0,0,0,0.23); diff --git a/lib/tasks/perms.rake b/lib/tasks/perms.rake new file mode 100644 index 00000000..70cd60f0 --- /dev/null +++ b/lib/tasks/perms.rake @@ -0,0 +1,16 @@ +require 'dotenv/tasks' + +namespace :perms do + desc "Update the Unix permissions on the public directory" + task :fix => :environment do + # e.g. rake perms:fix user=mmstaging group=mmstaging + # e.g. rake perms:fix group=www-data #probably don't need this one + # e.g. rake perms:fix + user = ENV['user'] || 'metamaps' + group = ENV['group'] || 'metamaps' + public_dir = Rails.root.join('public').to_s + system "chown -R #{user}:#{group} #{public_dir}" + system "find #{public_dir} -type d -exec chmod 755 '{}' \\;" + system "find #{public_dir} -type f -exec chmod 644 '{}' \\;" + end +end diff --git a/public/404.html b/public/404.html old mode 100644 new mode 100755 index da435ea6..d07c1069 --- a/public/404.html +++ b/public/404.html @@ -26,16 +26,16 @@ } body { - background: #d8d9da url(https://s3.amazonaws.com/metamaps-assets/site/shattered_%402X.png); - font-family: 'din-regular', helvetica, sans-serif; - color: #424242; - text-align: justify; - font-size: 18px; - line-height: 18px; - } - .dialog a { - color:#c04f4f; - } + background: #d8d9da url(https://s3.amazonaws.com/metamaps-assets/site/shattered_%402X.png); + font-family: 'din-regular', helvetica, sans-serif; + color: #424242; + text-align: justify; + font-size: 18px; + line-height: 18px; + } + .dialog a { + color:#c04f4f; + } .title{ font-size:50px; line-height: 50px; diff --git a/public/422.html b/public/422.html old mode 100644 new mode 100755 diff --git a/public/500.html b/public/500.html old mode 100644 new mode 100755 diff --git a/public/503.html b/public/503.html new file mode 100755 index 00000000..408ba46e --- /dev/null +++ b/public/503.html @@ -0,0 +1,128 @@ + + +
+Metamaps is offline!
+Don't worry, this is intentional. We're probably just turning on some great new features.
+In the meantime, you can visit our blog, or aimlessly search YouTube until we're back online.
+ GO TO OUR TWITTER FEED + GO TO OUR BLOG + +