fix(listeners) pop: ajaxLoad -> CloudCmd.ajaxLoad

This commit is contained in:
coderaiser 2013-10-04 10:35:15 +00:00
parent 2effa50a76
commit 0336677d9c
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ var Util, DOM, CloudFunc, CloudCmd;
DOM.Images.showLoad(pNeedRefresh ? {top:true} : null);
/* загружаем содержимое каталога */
ajaxLoad(lLink, { refresh: pNeedRefresh });
CloudCmd.ajaxLoad(lLink, { refresh: pNeedRefresh });
}
DOM.preventDefault(pEvent);
@ -338,7 +338,7 @@ var Util, DOM, CloudFunc, CloudCmd;
* @param pOptions
* { refresh, nohistory } - необходимость обновить данные о каталоге
*/
function ajaxLoad(pPath, pOptions){
CloudCmd.ajaxLoad = function(pPath, pOptions){
if(!pOptions)
pOptions = {};

View file

@ -282,7 +282,7 @@ var Util, DOM, CloudCmd;
if (pEvent.state) {
lPath = pEvent.state + '?json';
ajaxLoad(lPath, {nohistory: true});
CloudCmd.ajaxLoad(lPath, {nohistory: true});
} else
CloudCmd.route(location.hash);