diff options
author | Adam Young <ayoung@redhat.com> | 2010-08-19 20:48:21 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-08-19 20:49:14 -0400 |
commit | 12ee9365a7a08c7a45887b98f17a44c64d7eb5f0 (patch) | |
tree | 838143295e68b8c8e334272a12e682708b427032 /install/static/details.js | |
parent | 9a160275351c5763209346466a331b06546ac0e0 (diff) | |
download | freeipa-12ee9365a7a08c7a45887b98f17a44c64d7eb5f0.tar.gz freeipa-12ee9365a7a08c7a45887b98f17a44c64d7eb5f0.tar.xz freeipa-12ee9365a7a08c7a45887b98f17a44c64d7eb5f0.zip |
Changes the URL parsing from standard HTML params ( starting with ?)
to hash params ( starting with # ). User Details are now part of
index.xhtml, ao one more .inc file has been removed.
Updated commit to catch a few things that had been left out, including
sampledata handling and updateing Makefile.am
Diffstat (limited to 'install/static/details.js')
-rw-r--r-- | install/static/details.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/install/static/details.js b/install/static/details.js index d47cfe8b5..bdfafc0a8 100644 --- a/install/static/details.js +++ b/install/static/details.js @@ -39,7 +39,7 @@ var _ipa_load_on_fail_callback = null; var ipa_details_cache = null; -function ipa_details_load(pkey, on_win, on_fail) +function ipa_details_load(pkey, on_win, on_fail,sampleData) { if (!pkey) return; @@ -49,8 +49,7 @@ function ipa_details_load(pkey, on_win, on_fail) ipa_cmd( 'show', [pkey], {all: true}, _ipa_load_on_win, _ipa_load_on_fail, - _ipa_obj_name - ); + _ipa_obj_name, sampleData ); } function _ipa_load_on_win(data, text_status, xhr) @@ -171,7 +170,9 @@ function ipa_details_create(dls, container) for (var i = 0; i < dls.length; ++i) { var d = dls[i]; - ipa_generate_dl(container.children('hr').last(), d[0], d[1], d[2]); + + ipa_generate_dl($('#detail-lists hr').last(), d[0], d[1], d[2]); +// ipa_generate_dl($("#detail-lists"), d[0], d[1], d[2]); } } @@ -188,7 +189,6 @@ function ipa_generate_dl(jobj, id, name, dts) jobj = jobj.next(); jobj.after(_ipa_dl_template.replace('I', id)); jobj = jobj.next(); - jobj.after('<hr />'); for (var i = 0; i < dts.length; ++i) { var label = ''; @@ -203,6 +203,7 @@ function ipa_generate_dl(jobj, id, name, dts) _ipa_dt_template.replace('T', dts[i][0]).replace('N', label) ); } + jobj.after('<hr />'); } /* HTML templates for ipa_details_display() */ |