#1340 late_javascript_tag

This commit is contained in:
Karel.Picman 2022-03-17 14:29:30 +01:00
parent 5aa96a32fc
commit 53582a46c4
3 changed files with 39 additions and 5 deletions

View File

@ -30,7 +30,7 @@ module DmsfHelper
unless Redmine::Plugin.installed?(:easy_extensions)
def late_javascript_tag(content_or_options_with_block = nil, html_options = {}, &block)
javascript_tag content_or_options_with_block, html_options
javascript_tag content_or_options_with_block, html_options, &block
end
end

View File

@ -287,8 +287,14 @@ function dmsfSetupFileDrop() {
}
}
EASY.schedule.late(function () {
dmsfSetupFileDrop();
$(document).on("erui_new_dom", dmsfSetupFileDrop);
});
if(typeof EASY == "undefined"){
$(document).ready(dmsfSetupFileDrop);
}
else {
EASY.schedule.late(function () {
dmsfSetupFileDrop();
$(document).on("erui_new_dom", dmsfSetupFileDrop);
});
}

View File

@ -0,0 +1,28 @@
# encoding: utf-8
#
# Redmine plugin for Document Management System "Features"
#
# Copyright © 2011-22 Karel Pičman <karel.picman@kontron.com>
# Copyright © 2016-17 carlolars
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class AddOwnerToDmsfLock < ActiveRecord::Migration[5.2]
def change
add_column :dmsf_locks, :owner, :string, null: true
end
end