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...
1 parent 41c1c49 commit a397804db68e79dc546148ed96d75e6bb52e8879 @chillu chillu committed Nov 21, 2009
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);

0 comments on commit a397804

Please sign in to comment.