From cac47ee428b49c9832f2a21d8744c85a0c0b09c1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 10 Jan 2017 07:40:56 +0100 Subject: [PATCH] fix removal of file in drop folder chooser --- views/bootstrap/class.Bootstrap.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 957e5fdb9..b47f7aaa9 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1059,8 +1059,10 @@ function folderSelected(id, name) { function printKeywordChooserJs($formName) { /* {{{ */ ?> -$('#acceptkeywords').click(function(ev) { - acceptKeywords(); +$(document).ready(function() { + $('#acceptkeywords').click(function(ev) { + acceptKeywords(); + }); }); \n"; print ""; - print ""; + print ""; print "".($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file"))."…\n"; print "\n"; ?> @@ -1164,8 +1166,10 @@ function folderSelected(name) { function clearFilename() { $('#dropfolderfile').val(''); } -$('#clearfilename').click(function(ev) { - $('#dropfolderfile').val(''); +$(document).ready(function() { + $('#clearfilename').click(function(ev) { + $('#dropfolderfile').val(''); + }); });