mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
51f5bcc716
commit
6353664e83
1 changed files with 10 additions and 7 deletions
17
client.js
17
client.js
|
|
@ -315,7 +315,7 @@ CloudClient.Util = (function(){
|
|||
if (pParams_o.inner)lElement += '>' + pParams_o.inner;
|
||||
|
||||
lElement +='</style>';
|
||||
return $(lElement)
|
||||
return window.jQuery(lElement)
|
||||
.appendTo(pParams_o.parent || document.head);
|
||||
|
||||
}
|
||||
|
|
@ -349,12 +349,15 @@ CloudClient.Util = (function(){
|
|||
|
||||
this.getById = function(pId){return document.getElementById(pId);};
|
||||
|
||||
this.getByClass = function(pClass){
|
||||
if (document.getElementsByClassName)
|
||||
return document.getElementsByClassName(pClass);
|
||||
|
||||
else return $('.'+pClass);
|
||||
};
|
||||
|
||||
this.getByClass = (CloudCommander.OLD_BROWSER)?
|
||||
function(pClass){
|
||||
return window.jQuery('.'+pClass);
|
||||
}
|
||||
|
||||
:function(pClass){
|
||||
return document.getElementsByClassName(pClass);
|
||||
};
|
||||
|
||||
/* private members */
|
||||
var lLoadingImage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue