mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-10 10:04:01 +02:00
consider multiselect permission
This commit is contained in:
10
ifm.php
10
ifm.php
@@ -559,16 +559,18 @@ function IFM() {
|
||||
}
|
||||
$("#filetable tbody").remove();
|
||||
$("#filetable").append(newRows);
|
||||
// bind multiselect handler
|
||||
if(self.config.multiselect == 1) {
|
||||
$("input[name=multisel]").on("change", function(){ ifm.handleMultiSelect(); });
|
||||
if( self.config.multiselect == 1 ) {
|
||||
$('.clickable-row').click(function(event) {
|
||||
if( event.ctrlKey ) {
|
||||
$(this).toggleClass('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a[data-toggle="tooltip"]').tooltip({
|
||||
animated: 'fade',
|
||||
placement: 'right',
|
||||
html: true
|
||||
});
|
||||
$('.clickable-row').click(function(event) { if( event.ctrlKey ) $(this).toggleClass('active'); });
|
||||
};
|
||||
|
||||
this.changeDirectory = function( newdir, options={ absolute: false, pushState: true } ) {
|
||||
|
14
src/ifm.js
14
src/ifm.js
@@ -131,20 +131,18 @@ function IFM() {
|
||||
}
|
||||
$("#filetable tbody").remove();
|
||||
$("#filetable").append(newRows);
|
||||
// bind multiselect handler
|
||||
if(self.config.multiselect == 1) {
|
||||
$("input[name=multisel]").on("change", function(){ ifm.handleMultiSelect(); });
|
||||
if( self.config.multiselect == 1 ) {
|
||||
$('.clickable-row').click(function(event) {
|
||||
if( event.ctrlKey ) {
|
||||
$(this).toggleClass('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a[data-toggle="tooltip"]').tooltip({
|
||||
animated: 'fade',
|
||||
placement: 'right',
|
||||
html: true
|
||||
});
|
||||
$('.clickable-row').click(function(event) {
|
||||
if( event.ctrlKey ) {
|
||||
$(this).toggleClass('active');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
this.changeDirectory = function( newdir, options={ absolute: false, pushState: true } ) {
|
||||
|
Reference in New Issue
Block a user