summaryrefslogtreecommitdiffstats
path: root/install/static/ipa.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-08-23 22:32:23 -0400
committerAdam Young <ayoung@redhat.com>2010-08-26 13:15:00 -0400
commit49584d6efc6a10fa0b76ce81b2638d424f2208a8 (patch)
tree08c87c7d7bd2ee0fef6e5045948a977a5c61cdc9 /install/static/ipa.js
parent02479babb9cd5fdd0673175fde22e40f3a1b10b4 (diff)
downloadfreeipa-49584d6efc6a10fa0b76ce81b2638d424f2208a8.tar.gz
freeipa-49584d6efc6a10fa0b76ce81b2638d424f2208a8.tar.xz
freeipa-49584d6efc6a10fa0b76ce81b2638d424f2208a8.zip
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.
Diffstat (limited to 'install/static/ipa.js')
-rw-r--r--install/static/ipa.js21
1 files changed, 10 insertions, 11 deletions
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);
}
-