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
This commit is contained in:
Ingo Schommer 2009-11-21 02:39:08 +00:00
parent 41c1c49dfe
commit a397804db6

View File

@ -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);