mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-13 11:34:00 +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 tbody").remove();
|
||||||
$("#filetable").append(newRows);
|
$("#filetable").append(newRows);
|
||||||
// bind multiselect handler
|
if( self.config.multiselect == 1 ) {
|
||||||
if(self.config.multiselect == 1) {
|
$('.clickable-row').click(function(event) {
|
||||||
$("input[name=multisel]").on("change", function(){ ifm.handleMultiSelect(); });
|
if( event.ctrlKey ) {
|
||||||
|
$(this).toggleClass('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
$('a[data-toggle="tooltip"]').tooltip({
|
$('a[data-toggle="tooltip"]').tooltip({
|
||||||
animated: 'fade',
|
animated: 'fade',
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
html: true
|
html: true
|
||||||
});
|
});
|
||||||
$('.clickable-row').click(function(event) { if( event.ctrlKey ) $(this).toggleClass('active'); });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.changeDirectory = function( newdir, options={ absolute: false, pushState: true } ) {
|
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 tbody").remove();
|
||||||
$("#filetable").append(newRows);
|
$("#filetable").append(newRows);
|
||||||
// bind multiselect handler
|
if( self.config.multiselect == 1 ) {
|
||||||
if(self.config.multiselect == 1) {
|
$('.clickable-row').click(function(event) {
|
||||||
$("input[name=multisel]").on("change", function(){ ifm.handleMultiSelect(); });
|
if( event.ctrlKey ) {
|
||||||
|
$(this).toggleClass('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
$('a[data-toggle="tooltip"]').tooltip({
|
$('a[data-toggle="tooltip"]').tooltip({
|
||||||
animated: 'fade',
|
animated: 'fade',
|
||||||
placement: 'right',
|
placement: 'right',
|
||||||
html: true
|
html: true
|
||||||
});
|
});
|
||||||
$('.clickable-row').click(function(event) {
|
|
||||||
if( event.ctrlKey ) {
|
|
||||||
$(this).toggleClass('active');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.changeDirectory = function( newdir, options={ absolute: false, pushState: true } ) {
|
this.changeDirectory = function( newdir, options={ absolute: false, pushState: true } ) {
|
||||||
|
Reference in New Issue
Block a user