From de4ce46bc3d9c7ae69d781cd66e3482c46d738f9 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 10 Mar 2013 17:04:42 -0400 Subject: [PATCH] minor changes --- json/config.json | 4 ++-- lib/client/dom.js | 11 +++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/json/config.json b/json/config.json index 2c46b714..5b74c742 100644 --- a/json/config.json +++ b/json/config.json @@ -2,12 +2,12 @@ "api_url" : "/api/v1", "appcache" : false, "minification" : { - "js" : true, + "js" : false, "css" : true, "html" : true, "img" : true }, - "cache" : true, + "cache" : false, "logs" : false, "show_keys_panel" : true, "server" : true, diff --git a/lib/client/dom.js b/lib/client/dom.js index 9fab269b..4ce870e5 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -283,14 +283,9 @@ var CloudCommander, Util, var lData = lJqXHR.response; /* If it's json - parse it as json */ - if(lType && Util.isContainStr(lType, 'application/json') ){ - var lResult = Util.tryCatch(function(){ - lData = Util.parseJSON(lJqXHR.response); - }); - - if( Util.log(lResult) ) - lData = lJqXHR.response; - } + if(lType && Util.isContainStr(lType, 'application/json') ) + lData = Util.parseJSON(lJqXHR.response) || lJqXHR.response; + if( Util.isFunction(p.success) ) p.success(lData, lJqXHR.statusText, lJqXHR); }