from not jsload, cssload and anyload suport arrays

This commit is contained in:
coderaiser 2012-08-07 06:49:52 -04:00
parent 057d67fadf
commit 4ebc607478
3 changed files with 67 additions and 41 deletions

View file

@ -31,13 +31,11 @@ CloudCommander.Editor.CodeMirror.load = (function(pParent){
*/
var loadAll = function(pParent) {
return function(){
pParent.cssLoad({
src : 'lib/client/editor/codemirror/pack/codemirror.pack.css'
});
pParent.cssLoad([
{ src : 'lib/client/editor/codemirror/pack/codemirror.pack.css'},
{ src : 'lib/client/editor/codemirror/pack/night.pack.css'}
]);
pParent.cssLoad({
src : 'lib/client/editor/codemirror/pack/night.pack.css'
});
pParent.cssSet({id:'editor',
inner : '.CodeMirror{' +
@ -134,6 +132,10 @@ CloudCommander.Editor.CodeMirror.show = (function(){
}
this.loading = true;
setTimeout(function(){
lParent.loading = false;},
400);
/* reading data from current file */
$.ajax({
url:lA,