mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix bulk actions making sitetree unclickable
This commit is contained in:
parent
6bba01a6d4
commit
0f81d5ece5
@ -174,6 +174,9 @@
|
||||
// the native dropdown
|
||||
setTimeout(function() { batchactions.addClass('inactive'); }, 100);
|
||||
}
|
||||
|
||||
// Refresh selected / enabled nodes
|
||||
$('#Form_BatchActionsForm').refreshSelected();
|
||||
},
|
||||
|
||||
/**
|
||||
@ -236,6 +239,7 @@
|
||||
st = this.getTree(),
|
||||
ids = this.getIDs(),
|
||||
allIds = [],
|
||||
viewMode = $('.cms-content-batchactions :input[name=view-mode-batchactions]'),
|
||||
selectedAction = this.find(':input[name=Action]').val();
|
||||
|
||||
// Default to refreshing the entire tree
|
||||
@ -246,7 +250,7 @@
|
||||
}
|
||||
|
||||
// If no action is selected, enable all nodes
|
||||
if(selectedAction == -1) {
|
||||
if(!selectedAction || selectedAction == -1 || !viewMode.is(":checked")) {
|
||||
$(rootNode).find('li').each(function() {
|
||||
$(this).setEnabled(true);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user