mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
41c1c49dfe
commit
a397804db6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user