From 6353664e83440ae5ed2e800834caa318d56ea536 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 13 Aug 2012 08:44:24 -0400 Subject: [PATCH] minor changes --- client.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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;