1
0
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:
Marco Dickert
2017-02-16 16:28:33 +01:00
parent 40705815af
commit 70b0e59d18
2 changed files with 12 additions and 12 deletions

10
ifm.php
View File

@@ -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 } ) {

View File

@@ -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 } ) {