Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.2.2
[ckeditor.git]
/
_source
/
core
/
scriptloader.js
diff --git
a/_source/core/scriptloader.js
b/_source/core/scriptloader.js
index
6e7884b
..
0ad7d86
100644
(file)
--- a/
_source/core/scriptloader.js
+++ b/
_source/core/scriptloader.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-51,7
+51,7
@@
CKEDITOR.scriptLoader = (function()
* alert( 'Number of failures: ' + failed.length );
\r
* });
\r
*/
\r
* alert( 'Number of failures: ' + failed.length );
\r
* });
\r
*/
\r
- load : function( scriptUrl, callback, scope, noCheck )
\r
+ load : function( scriptUrl, callback, scope, noCheck, showBusy )
\r
{
\r
var isString = ( typeof scriptUrl == 'string' );
\r
\r
{
\r
var isString = ( typeof scriptUrl == 'string' );
\r
\r
@@
-87,7
+87,10
@@
CKEDITOR.scriptLoader = (function()
( success ? completed : failed ).push( url );
\r
\r
if ( --scriptCount <= 0 )
\r
( success ? completed : failed ).push( url );
\r
\r
if ( --scriptCount <= 0 )
\r
+ {
\r
+ showBusy && CKEDITOR.document.getDocumentElement().removeStyle( 'cursor' );
\r
doCallback( success );
\r
doCallback( success );
\r
+ }
\r
};
\r
\r
var onLoad = function( url, success )
\r
};
\r
\r
var onLoad = function( url, success )
\r
@@
-167,6
+170,7
@@
CKEDITOR.scriptLoader = (function()
CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine
\r
};
\r
\r
CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine
\r
};
\r
\r
+ showBusy && CKEDITOR.document.getDocumentElement().setStyle( 'cursor', 'wait' );
\r
for ( var i = 0 ; i < scriptCount ; i++ )
\r
{
\r
loadScript( scriptUrl[ i ] );
\r
for ( var i = 0 ; i < scriptCount ; i++ )
\r
{
\r
loadScript( scriptUrl[ i ] );
\r