From 7c1096c74d498ca4a404e38a75ecb69ba1654793 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 24 Jul 2012 08:41:03 -0400 Subject: [PATCH] minor changes --- client.js | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/client.js b/client.js index deb5ce00..8d5d1379 100644 --- a/client.js +++ b/client.js @@ -48,7 +48,7 @@ var CloudClient={ * Обьект для работы с кэшем * в него будут включены функции для * работы с LocalStorage, webdb, - * idexed db etc. + * indexed db etc. */ CloudClient.Cache={ _allowed :true, /* приватный переключатель возможности работы с кэшем */ @@ -304,7 +304,7 @@ CloudClient._currentToParent = (function(pDirName){ var LoadingImage; var ErrorImage; -var CloudFunc; +var CloudFunc, $; /* Конструктор CloudClient, который * выполняет весь функционал по * инициализации @@ -320,9 +320,18 @@ CloudClient.init=(function() /* загружаем jquery: */ CloudClient.jsload('//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',{ + onload: function(){ + $ = window.jQuery; + }, + onerror: function(){ CloudClient.jsload('lib/client/jquery.js'); + /* + * if could not load jquery from google server + * maybe we offline, load font from local + * directory + */ CloudClient.cssSet({id:'local-droids-font', element : document.head, inner : '@font-face {font-family: "Droid Sans Mono";' + @@ -404,7 +413,6 @@ CloudClient._changeLinks = function(pPanelID) * перезагрузить */ /* номер ссылки очистки кэша*/ - //var lCLEARICON=0; /* номер ссылки иконки обновления страницы */ var lREFRESHICON=0; @@ -415,10 +423,7 @@ CloudClient._changeLinks = function(pPanelID) var lFS_s = CloudFunc.FS; for(var i=0;i