From 59cc365a1db0e344df739ed946ee6972e19c157d Mon Sep 17 00:00:00 2001 From: Adam Young Date: Mon, 15 Nov 2010 13:20:07 -0500 Subject: demo deploy Makes it easier to deploy demos. This version will demo cleanly from html providing you just set that.use_static_files = true; in the IPA definition section --- install/static/ipa.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'install/static') diff --git a/install/static/ipa.js b/install/static/ipa.js index ab69d5aa9..4a01d9fb8 100644 --- a/install/static/ipa.js +++ b/install/static/ipa.js @@ -28,8 +28,13 @@ var IPA = ( function () { jsonrpc_id: 0 }; - that.json_url = null; that.use_static_files = false; + that.json_url = '/ipa/json'; + if (that.use_static_files){ + that.json_url = 'test/data' + } + + that.ajax_options = { type: 'POST', @@ -353,10 +358,6 @@ function ipa_cmd(name, args, options, win_callback, fail_callback, objname) var url = IPA.json_url; - if (!url){ - url = default_json_url; - } - if (IPA.use_static_files){ url += '/' + method_name + '.json'; } -- cgit