fix easy context menu

This commit is contained in:
pavel 2020-07-29 13:41:54 +02:00
parent 88acc1f868
commit b7b9007b61
2 changed files with 5 additions and 11 deletions

View File

@ -22,12 +22,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) %>
<div class="contextual">
<% unless @locked_for_user || @system_folder %>

View File

@ -280,9 +280,9 @@ function dmsfSetupFileDrop() {
}
}
$(document).ready(function() {
EASY.schedule.late(function () {
dmsfSetupFileDrop();
$(document).on("erui_new_dom", dmsfSetupFileDrop);
});
EASY.schedule.late(function () {
dmsfSetupFileDrop();
$(document).on("erui_new_dom", dmsfSetupFileDrop);
});