diff --git a/views/bootstrap/class.DropFolderChooser.php b/views/bootstrap/class.DropFolderChooser.php index 849ca2062..4882c6782 100644 --- a/views/bootstrap/class.DropFolderChooser.php +++ b/views/bootstrap/class.DropFolderChooser.php @@ -34,7 +34,7 @@ class SeedDMS_View_DropFolderChooser extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ header('Content-Type: application/javascript'); ?> -$('#fileselect').click(function(ev) { +$('.fileselect').click(function(ev) { attr_filename = $(ev.currentTarget).attr('filename'); fileSelected(attr_filename); }); @@ -58,17 +58,6 @@ $('#folderselect').click(function(ev) { $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout); -// $this->htmlStartPage(getMLText("choose_target_file")); -// $this->globalBanner(); -// $this->pageNavigation(getMLText("choose_target_file")); -?> - - -contentContainerStart(); - $dir = $dropfolderdir.'/'.$user->getLogin(); /* Check if we are still looking in the configured directory and * not somewhere else, e.g. if the login was '../test' @@ -91,7 +80,7 @@ var targetName = document..dropfolderfile; if($previewer->hasRawPreview($dir.'/'.$entry, 'dropfolder/')) { echo ""; } - echo "".$entry."".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))."".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))."\n"; + echo "".$entry."".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))."".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))."\n"; } elseif($showfolders) { echo ""; echo ""; @@ -105,10 +94,6 @@ var targetName = document..dropfolderfile; echo ''."\n"; } } - -// $this->contentContainerEnd(); -// echo "\n\n"; -// $this->htmlEndPage(); } /* }}} */ } ?>