diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index e7325c7a7..0ce613c71 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1171,6 +1171,7 @@ function folderSelected(id, name) { print "getID() : "") ."\">"; print "
\n"; print "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"/>"; + print ""; print "".getMLText("folder")."…\n"; print "
\n"; ?> @@ -1196,6 +1197,12 @@ function folderSelected(id, name) { $('#choosefoldersearch').val(name); $('#folderChooser').modal('hide'); } +$(document).ready(function() { + $('#clearfolder').click(function(ev) { + $('#choosefoldersearch').val(''); + $('#targetid').val(''); + }); +}); -function clearFilename() { - $('#dropfolderfile').val(''); -} $(document).ready(function() { $('#clearfilename').click(function(ev) { $('#dropfolderfile').val('');