mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug with load int offline mode
This commit is contained in:
parent
2a6f391bf7
commit
abeb01ac61
1 changed files with 24 additions and 23 deletions
|
|
@ -39,31 +39,32 @@ CloudCommander.Viewer.FancyBox = {
|
|||
padding : 0
|
||||
};
|
||||
}),
|
||||
load: function(){
|
||||
var ljsLoad_f = function(){
|
||||
CloudCommander.jsload(
|
||||
'http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js',{
|
||||
load:(function(pParent){
|
||||
return function(){
|
||||
var ljsLoad_f = function(){
|
||||
CloudCommander.jsload(
|
||||
'http://fancyapps.com/fancybox/source/jquery.fancybox.pack.js',{
|
||||
onerror: (function(){
|
||||
CloudCommander.jsload(pParent.dir +
|
||||
'jquery.fancybox.pack.js');
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
CloudCommander.cssLoad({
|
||||
src : 'http://fancyapps.com/fancybox/source/jquery.fancybox.css',
|
||||
func : {
|
||||
onload: ljsLoad_f,
|
||||
onerror: (function(){
|
||||
CloudCommander.jsload(this.dir +
|
||||
'jquery.fancybox.pack.js');
|
||||
CloudCommander.cssLoad({
|
||||
src : pParent +'jquery.fancybox.css',
|
||||
func : ljsLoad_f
|
||||
});
|
||||
})
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
CloudCommander.cssLoad({
|
||||
src : 'http://fancyapps.com/fancybox/source/jquery.fancybox.css',
|
||||
func : {
|
||||
onload: ljsLoad_f,
|
||||
onerror: (function(){
|
||||
CloudCommander.cssLoad({
|
||||
src : this.dir +'jquery.fancybox.css',
|
||||
func : ljsLoad_f
|
||||
});
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
},
|
||||
}),
|
||||
set: function(){
|
||||
if(this.getByClass('fancybox').length)
|
||||
return;
|
||||
|
|
@ -100,7 +101,7 @@ CloudCommander.Viewer.FancyBox = {
|
|||
CloudCommander.Viewer.Keys = (function(){
|
||||
"use strict";
|
||||
|
||||
CloudCommander.Viewer.FancyBox.load();
|
||||
CloudCommander.Viewer.FancyBox.load(this.FancyBox);
|
||||
|
||||
var key_event = function(pParent){
|
||||
return function(event){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue