From c0229ad352a66b217976ea10e8dd18b49d46bf5b Mon Sep 17 00:00:00 2001 From: Robin Barling Date: Fri, 11 May 2018 13:07:48 +1200 Subject: [PATCH 1/2] Batch action on Page loading screen fix --- admin/javascript/LeftAndMain.BatchActions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/javascript/LeftAndMain.BatchActions.js b/admin/javascript/LeftAndMain.BatchActions.js index 182f506c2..e6dd2c541 100644 --- a/admin/javascript/LeftAndMain.BatchActions.js +++ b/admin/javascript/LeftAndMain.BatchActions.js @@ -281,6 +281,7 @@ tree.find('li').removeClass('failed'); var button = this.find(':submit:first'); + $('.cms-content-fields').addClass('loading'); button.addClass('loading'); jQuery.ajax({ @@ -289,6 +290,7 @@ type: 'POST', data: this.serializeArray(), complete: function(xmlhttp, status) { + $('.cms-content-fields').removeClass('loading'); button.removeClass('loading'); // Refresh the tree. From 20fa51183580b9ed9a643f6b9cb992866a87fa3e Mon Sep 17 00:00:00 2001 From: Robin Barling Date: Fri, 11 May 2018 16:33:46 +1200 Subject: [PATCH 2/2] Change the '$' to 'jQuery' for consistency. --- admin/javascript/LeftAndMain.BatchActions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/javascript/LeftAndMain.BatchActions.js b/admin/javascript/LeftAndMain.BatchActions.js index e6dd2c541..57ea5e3dc 100644 --- a/admin/javascript/LeftAndMain.BatchActions.js +++ b/admin/javascript/LeftAndMain.BatchActions.js @@ -281,7 +281,7 @@ tree.find('li').removeClass('failed'); var button = this.find(':submit:first'); - $('.cms-content-fields').addClass('loading'); + jQuery('.cms-content-fields').addClass('loading'); button.addClass('loading'); jQuery.ajax({ @@ -290,7 +290,7 @@ type: 'POST', data: this.serializeArray(), complete: function(xmlhttp, status) { - $('.cms-content-fields').removeClass('loading'); + jQuery('.cms-content-fields').removeClass('loading'); button.removeClass('loading'); // Refresh the tree.