diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-09 14:20:40 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-14 16:45:41 -0500 |
commit | cec6703da35a511340ded9a1ec5958be9bd9bc8e (patch) | |
tree | 7bd3bd24d60f6ccd43ed99831dbf1d8dd2dd421a /install/static/hbac.js | |
parent | e0a39234f777c9c32af639195ec198b08fd7d452 (diff) | |
download | freeipa-cec6703da35a511340ded9a1ec5958be9bd9bc8e.tar.gz freeipa-cec6703da35a511340ded9a1ec5958be9bd9bc8e.tar.xz freeipa-cec6703da35a511340ded9a1ec5958be9bd9bc8e.zip |
Account activation adjustment
The user details facet has been modified such that when the account
is activated/deactivated the page will be reloaded.
Some methods in the framework have been changed:
- The ipa_widget.clear() has been removed because it can be replaced
by existing reset().
- The ipa_widget.set_values() has been renamed into update().
Diffstat (limited to 'install/static/hbac.js')
-rwxr-xr-x | install/static/hbac.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/install/static/hbac.js b/install/static/hbac.js index 213dd3e4..d0188fa5 100755 --- a/install/static/hbac.js +++ b/install/static/hbac.js @@ -806,25 +806,25 @@ function ipa_hbac_accesstime_widget(spec) { } }; - that.load = function(result) { + that.load = function(record) { - that.values = result[that.name] || []; + that.values = record[that.name] || []; that.reset(); }; - that.set_values = function(values) { + that.update = function() { - that.set_radio_value(that.container, values && values.length ? '' : 'all'); + that.set_category(that.container, that.values && that.values.length ? '' : 'all'); that.table.tbody.empty(); - for (var i=0; values && i<values.length; i++) { + for (var i=0; that.values && i<that.values.length; i++) { var record = {}; - record[that.name] = values[i]; + record[that.name] = that.values[i]; that.table.add_record(record); } }; - that.set_radio_value = function(container, value) { + that.set_category = function(container, value) { $('input[name="'+that.name+'"][value="'+value+'"]', that.container).get(0).checked = true; }; @@ -903,7 +903,7 @@ function ipa_hbac_accesstime_widget(spec) { dialog.add_button('Add', function() { add( - function() { dialog.clear(); } + function() { dialog.reset(); } ); }); |