From 49584d6efc6a10fa0b76ce81b2638d424f2208a8 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Mon, 23 Aug 2010 22:32:23 -0400 Subject: hashchange We now catch the hashchange event and use that to drive most of the site. To trigger page transitions, modify location.hash. Params start with # not ?. Removed user-group.inc. converted tabs to spaces trivial imlementation of add and details for netgroup and hostgroup lots of bug fixes based on routing problems and the refactorings. --- install/static/ipa.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'install/static/ipa.js') diff --git a/install/static/ipa.js b/install/static/ipa.js index 1e3238364..fd93c1a30 100644 --- a/install/static/ipa.js +++ b/install/static/ipa.js @@ -39,16 +39,16 @@ var qs; function ipa_init(url, on_win) { if (!url) - url = '/ipa/json'; + url = '/ipa/json'; _ipa_init_on_win_callback = on_win; var options = { - url: url, - type: 'POST', - contentType: 'application/json', - dataType: 'json', - processData: false, + url: url, + type: 'POST', + contentType: 'application/json', + dataType: 'json', + processData: false, }; $.ajaxSetup(options); @@ -60,7 +60,7 @@ function _ipa_load_objs(data, textStatus, xhr) { ipa_objs = data.result.result; if (_ipa_init_on_win_callback) - _ipa_init_on_win_callback(data, textStatus, xhr); + _ipa_init_on_win_callback(data, textStatus, xhr); } /* call an IPA command over JSON-RPC @@ -95,9 +95,9 @@ function ipa_cmd(name, args, options, win_callback, fail_callback, objname,sampl }; var request = { - data: JSON.stringify(data), - success: win_callback, - error: fail_callback, + data: JSON.stringify(data), + success: win_callback, + error: fail_callback, }; $.ajax(request); @@ -143,4 +143,3 @@ function ipa_get_param_info(attr) return (null); } - -- cgit