From 3e0b2737bfb680932d0732e4c25e5ce430ea6c4c Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 22 May 2014 06:19:32 -0400 Subject: [PATCH] refactor(client) ajaxLoad: rm noJSONPath --- lib/client.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/client.js b/lib/client.js index 06d9127f..5eb239f9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -52,8 +52,6 @@ var Util, DOM, CloudFunc; else link = Util.rmStr(href, CloudCmd.HOST); - link += '?json'; - if (link || currentLink.target !== '_blank') { if (panel && panel !== Info.panel) { DOM.changePanel(); @@ -371,15 +369,11 @@ var Util, DOM, CloudFunc; this.ajaxLoad = function(path, options, panel) { var SLASH = '/', fsPath = decodeURI(path), - noJSONPath = Util.rmStr(fsPath, '?json' ), - cleanPath = Util.rmStrOnce(noJSONPath, CloudFunc.FS) || SLASH; + cleanPath = Util.rmStrOnce(fsPath, CloudFunc.FS) || SLASH; if (!options) options = {}; - if (cleanPath === SLASH) - noJSONPath = SLASH; - Util.log ('reading dir: "' + cleanPath + '";'); Storage.get(cleanPath, function(json) {