summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-11-15 13:20:07 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-11-16 11:19:55 -0500
commit59cc365a1db0e344df739ed946ee6972e19c157d (patch)
tree81f686b0de5a390f35ecf24fba04acb2f5e9d850 /install
parent455bf4d2885d992e70e6cddae27038adb59be176 (diff)
downloadfreeipa-59cc365a1db0e344df739ed946ee6972e19c157d.tar.gz
freeipa-59cc365a1db0e344df739ed946ee6972e19c157d.tar.xz
freeipa-59cc365a1db0e344df739ed946ee6972e19c157d.zip
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
Diffstat (limited to 'install')
-rw-r--r--install/static/ipa.js11
1 files changed, 6 insertions, 5 deletions
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';
}