diff --git a/client.js b/client.js index 1e93b8cc..d47306b5 100644 --- a/client.js +++ b/client.js @@ -315,7 +315,7 @@ CloudClient.Util = (function(){ if (pParams_o.inner)lElement += '>' + pParams_o.inner; lElement +=''; - 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;