From 0f81d5ece57a50c0daaf0d86c2faa977f323663b Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 21 Aug 2015 16:22:08 +1200 Subject: [PATCH] BUG Fix bulk actions making sitetree unclickable --- admin/javascript/LeftAndMain.BatchActions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/javascript/LeftAndMain.BatchActions.js b/admin/javascript/LeftAndMain.BatchActions.js index de5caa4da..de975e9c1 100644 --- a/admin/javascript/LeftAndMain.BatchActions.js +++ b/admin/javascript/LeftAndMain.BatchActions.js @@ -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); });