From 3c20b5806732b76dd817017dffd1b8215fe35edd Mon Sep 17 00:00:00 2001 From: David Craig Date: Wed, 15 Jul 2015 14:58:48 +1200 Subject: [PATCH] Update tree status after bulk action is applied --- admin/javascript/LeftAndMain.BatchActions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/javascript/LeftAndMain.BatchActions.js b/admin/javascript/LeftAndMain.BatchActions.js index 7eed870a3..ef58e4811 100644 --- a/admin/javascript/LeftAndMain.BatchActions.js +++ b/admin/javascript/LeftAndMain.BatchActions.js @@ -350,8 +350,9 @@ complete: function(xmlhttp, status) { button.removeClass('loading'); - // Deselect all nodes - tree.jstree('uncheck_all'); + // Refresh the tree. + // Makes sure all nodes have the correct CSS classes applied. + tree.jstree('refresh', -1); self.setIDs([]); // Reset action