diff --git a/app/views/dmsf/trash.html.erb b/app/views/dmsf/trash.html.erb index 99e09aea..779ae56a 100644 --- a/app/views/dmsf/trash.html.erb +++ b/app/views/dmsf/trash.html.erb @@ -20,12 +20,6 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. %> -<% if defined?(EasyExtensions) %> - <% content_for :header_tags do %> - <%= javascript_include_tag 'context_menu', 'application', defer: true %> - <% end %> -<% end %> - <% html_title l(:dmsf) %>

<%= l(:link_trash_bin) %>

diff --git a/app/views/dmsf_context_menus/dmsf.html.erb b/app/views/dmsf_context_menus/dmsf.html.erb index ea13eda1..1ddf5993 100644 --- a/app/views/dmsf_context_menus/dmsf.html.erb +++ b/app/views/dmsf_context_menus/dmsf.html.erb @@ -22,26 +22,26 @@ <%= late_javascript_tag do %> $('#dmsf-cm-delete').click(function (event) { - contextMenuHide(); + $('#context-menu').hide(); }); $('#dmsf-cm-workflow').click(function (event) { - contextMenuHide(); + $('#context-menu').hide(); }); <% end %> diff --git a/app/views/dmsf_context_menus/trash.html.erb b/app/views/dmsf_context_menus/trash.html.erb index 81fa2b28..9eb502d8 100644 --- a/app/views/dmsf_context_menus/trash.html.erb +++ b/app/views/dmsf_context_menus/trash.html.erb @@ -36,6 +36,6 @@ <%= late_javascript_tag do %> $('#dmsf-cm-delete').click(function (event) { - contextMenuHide(); + $('#context-menu').hide(); }); <% end %>