Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Set loading state on icons for CMS form loading javascript

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92673 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit a397804db68e79dc546148ed96d75e6bb52e8879 1 parent 41c1c49
@chillu chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 javascript/LeftAndMain_left.js
View
6 javascript/LeftAndMain_left.js
@@ -208,9 +208,15 @@ TreeNodeAPI.prototype = {
},
getPageFromServer : function() {
+ var self = this;
+
+ this.addNodeClass('loading');
+
jQuery('#Form_EditForm').concrete('ss').load(
jQuery(this).find('a').attr('href'),
function(response) {
+ self.removeNodeClass('loading');
+
var pageID = jQuery(this).find(':input[name=ID]').val();
if(pageID) {
jQuery('#sitetree')[0].setCurrentByIdx(pageID);
Please sign in to comment.
Something went wrong with that request. Please try again.