diff --git a/views/layout.erb b/views/layout.erb index 361f5139..43f09dab 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -68,6 +68,8 @@ callback(suggestionObjects) }) } + }).on('typeahead:selected', function(e) { + e.target.form.submit() }) diff --git a/views/site_files/text_editor.erb b/views/site_files/text_editor.erb index d7c27f82..74819441 100644 --- a/views/site_files/text_editor.erb +++ b/views/site_files/text_editor.erb @@ -16,6 +16,9 @@

Editing <%= @filename %>

+ <% if @filename.match /index.html$/ %> +

Note: index.html is the first web page that gets loaded when users visit your site. Make sure there are HTML links to your other pages from this page.

+ <% end %>
diff --git a/views/surf.erb b/views/surf.erb index f778c422..ee05b7a0 100644 --- a/views/surf.erb +++ b/views/surf.erb @@ -132,6 +132,10 @@ display: inline; font-size: 11px; } + .hidden { + display:none!important; + visibility:hidden + } @@ -154,7 +158,8 @@
  • - + +
  • @@ -220,6 +225,8 @@ callback(suggestionObjects) }) } + }).on('typeahead:selected', function(e) { + e.target.form.submit() }) function toggleFollow(id) {