X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fscriptloader.js;h=0ad7d86994cff8f1a4c71b6977d39e65fc7b73b1;hp=6e7884b514dcde1bbd67d23081f836f0d77f6662;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d diff --git a/_source/core/scriptloader.js b/_source/core/scriptloader.js index 6e7884b..0ad7d86 100644 --- a/_source/core/scriptloader.js +++ b/_source/core/scriptloader.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -51,7 +51,7 @@ CKEDITOR.scriptLoader = (function() * alert( 'Number of failures: ' + failed.length ); * }); */ - load : function( scriptUrl, callback, scope, noCheck ) + load : function( scriptUrl, callback, scope, noCheck, showBusy ) { var isString = ( typeof scriptUrl == 'string' ); @@ -87,7 +87,10 @@ CKEDITOR.scriptLoader = (function() ( success ? completed : failed ).push( url ); if ( --scriptCount <= 0 ) + { + showBusy && CKEDITOR.document.getDocumentElement().removeStyle( 'cursor' ); doCallback( success ); + } }; var onLoad = function( url, success ) @@ -167,6 +170,7 @@ CKEDITOR.scriptLoader = (function() CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine }; + showBusy && CKEDITOR.document.getDocumentElement().setStyle( 'cursor', 'wait' ); for ( var i = 0 ; i < scriptCount ; i++ ) { loadScript( scriptUrl[ i ] );