diff --git a/app/assets/javascripts/metamaps/Metamaps.GlobalUI.js b/app/assets/javascripts/metamaps/Metamaps.GlobalUI.js index 0dff8295..8e4ae2ae 100644 --- a/app/assets/javascripts/metamaps/Metamaps.GlobalUI.js +++ b/app/assets/javascripts/metamaps/Metamaps.GlobalUI.js @@ -75,6 +75,8 @@ Metamaps.GlobalUI = { event.preventDefault(); return false; }); + + $('#lightbox_screen, #lightbox_close').click(self.closeLightbox); // hide notices after 10 seconds $('.notice.metamaps').delay(10000).fadeOut('fast'); @@ -105,9 +107,10 @@ Metamaps.GlobalUI = { } }, - closeLightbox: function () { + closeLightbox: function (event) { var self = Metamaps.GlobalUI; + if (event) event.preventDefault(); $('#lightbox_overlay').hide(); if (self.lightbox === 'forkmap') Metamaps.GlobalUI.CreateMap.reset('fork_map'); diff --git a/app/views/in_metacode_sets/_form.html.erb b/app/views/in_metacode_sets/_form.html.erb deleted file mode 100644 index 8af37701..00000000 --- a/app/views/in_metacode_sets/_form.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<%= form_for(@in_metacode_set) do |f| %> - <% if @in_metacode_set.errors.any? %> -
Metacode | -Metacode set | -- | - | - |
---|---|---|---|---|
<%= in_metacode_set.metacode %> | -<%= in_metacode_set.metacode_set %> | -<%= link_to 'Show', in_metacode_set %> | -<%= link_to 'Edit', edit_in_metacode_set_path(in_metacode_set) %> | -<%= link_to 'Destroy', in_metacode_set, method: :delete, data: { confirm: 'Are you sure?' } %> | -
<%= notice %>
- -- Metacode: - <%= @in_metacode_set.metacode %> -
- -- Metacode set: - <%= @in_metacode_set.metacode_set %> -
- - -<%= link_to 'Edit', edit_in_metacode_set_path(@in_metacode_set) %> | -<%= link_to 'Back', in_metacode_sets_path %> diff --git a/app/views/layouts/_ga.html.erb b/app/views/layouts/_googleanalytics.html.erb similarity index 100% rename from app/views/layouts/_ga.html.erb rename to app/views/layouts/_googleanalytics.html.erb diff --git a/app/views/layouts/_lightboxes.html.erb b/app/views/layouts/_lightboxes.html.erb index 0328db16..1d6d2d3e 100644 --- a/app/views/layouts/_lightboxes.html.erb +++ b/app/views/layouts/_lightboxes.html.erb @@ -6,7 +6,7 @@