mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fixed bug with jqueryLoad and socketLoad
This commit is contained in:
parent
14a84c6f12
commit
0ddc432f07
2 changed files with 7 additions and 7 deletions
|
|
@ -12,9 +12,9 @@
|
|||
"show_keys_panel" : true,
|
||||
"server" : true,
|
||||
"socket" : true,
|
||||
"port" : 80,
|
||||
"sslPort" : 443,
|
||||
"port" : 8000,
|
||||
"sslPort" : 4430,
|
||||
"ip" : null,
|
||||
"ssl" : false,
|
||||
"rest" : true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -901,16 +901,16 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
*/
|
||||
this.jqueryLoad = function(pCallBack){
|
||||
/* загружаем jquery: */
|
||||
this.jsload('//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js',{
|
||||
Loader.jsload('//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js',{
|
||||
onload: Util.retExec(pCallBack),
|
||||
|
||||
onerror: function(){
|
||||
this.jsload('/lib/client/jquery.js');
|
||||
Loader.jsload('/lib/client/jquery.js');
|
||||
|
||||
/* if could not load jquery from google server
|
||||
* maybe we offline, load font from local
|
||||
* directory */
|
||||
this.cssSet({
|
||||
Loader.cssSet({
|
||||
id :'local-droids-font',
|
||||
element : document.head,
|
||||
inner : '@font-face {font-family: "Droid Sans Mono";' +
|
||||
|
|
@ -927,7 +927,7 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
* @param pCallBack
|
||||
*/
|
||||
this.socketLoad = function(pCallBack){
|
||||
this.jsload('/lib/client/socket.js', Util.retExec(pCallBack) );
|
||||
Loader.jsload('/lib/client/socket.js', Util.retExec(pCallBack) );
|
||||
};
|
||||
},
|
||||
CmdProto = function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue