On 11/15/2010 01:22 PM, Adam Young wrote:



_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel
Rebased ontop of current stack, to include my patch 0090.
From 2d22c0486ed069689d0d28f975aa4f40f873987c Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Mon, 15 Nov 2010 13:20:07 -0500
Subject: [PATCH] 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 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/install/static/ipa.js b/install/static/ipa.js
index ab69d5a..4a01d9f 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';
     }
-- 
1.7.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to