diff --git a/scripts/filemanager.config.js.default b/scripts/filemanager.config.js.default index 307052f4..d84bc3bf 100644 --- a/scripts/filemanager.config.js.default +++ b/scripts/filemanager.config.js.default @@ -16,6 +16,7 @@ "searchBox": true, "listFiles": true, "fileSorting": "default", + "quickSelect": true, "chars_only_latin": true, "splitterWidth": 200, "splitterMinWidth": 200, diff --git a/scripts/filemanager.js b/scripts/filemanager.js index c540fa54..30332624 100644 --- a/scripts/filemanager.js +++ b/scripts/filemanager.js @@ -1487,7 +1487,11 @@ var getFolderInfo = function(path) { if($('#fileinfo').data('view') == 'grid') { $('#fileinfo').find('#contents li').click(function(){ var path = $(this).find('img').attr('data-path'); - getDetailView(path); + if(config.options.quickSelect && data[path]['File Type'] != 'dir' && $(this).hasClass('cap_select')) { + selectItem(data[path]); + } else { + getDetailView(path); + } }).each(function() { $(this).contextMenu( { menu: getContextMenuOptions($(this)) }, @@ -1500,7 +1504,11 @@ var getFolderInfo = function(path) { } else { $('#fileinfo tbody tr').click(function(){ var path = $('td:first-child', this).attr('data-path'); - getDetailView(path); + if(config.options.quickSelect && data[path]['File Type'] != 'dir' && $(this).hasClass('cap_select')) { + selectItem(data[path]); + } else { + getDetailView(path); + } }).each(function() { $(this).contextMenu( { menu: getContextMenuOptions($(this)) }, diff --git a/scripts/filemanager.min.js b/scripts/filemanager.min.js index c7bf162c..babe1de2 100644 --- a/scripts/filemanager.min.js +++ b/scripts/filemanager.min.js @@ -4,71 +4,71 @@ @author Simon Georget @copyright Authors */ -(function(a){function I(a){var g=this.window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;if(!g)throw Error("XMLHttpRequest not supported");g.open("HEAD",a,!1);g.send(null);return 200==g.status?!0:!1}function r(c,g){return"dir"==c["File Type"]&&"replace"==g?!1:"dir"==c["File Type"]&&"download"==g?1==f.security.allowFolderDownload?!0:!1:"undefined"==typeof c.Capabilities?!0:-1");a("head").append(g);HEAD_included_files.push(c)}};loadJS=function(c){if(-1==a.inArray(c,HEAD_included_files)){var g=a("