diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2011-08-26 18:36:54 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-08-29 15:22:20 +0000 |
commit | 7d33e5bc3f95bdbf9ed70a62077cdfd9cb6ed7c9 (patch) | |
tree | 6c1c58a004bec7d01369c6bb70c8c6f85c94729b /install/ui/widget.js | |
parent | f1b93c5b0bbc433de6cf4b66f3396f09543d5843 (diff) | |
download | freeipa-7d33e5bc3f95bdbf9ed70a62077cdfd9cb6ed7c9.tar.gz freeipa-7d33e5bc3f95bdbf9ed70a62077cdfd9cb6ed7c9.tar.xz freeipa-7d33e5bc3f95bdbf9ed70a62077cdfd9cb6ed7c9.zip |
Modifying sudo options refreshes the whole page
https://fedorahosted.org/freeipa/ticket/1689
Currently adding or deleting sudo options will refresh the entire page. It's not a problem but the code could be optimized to refresh only the sudo options table
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r-- | install/ui/widget.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js index 62af6c16d..83cb4dcb2 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1471,11 +1471,11 @@ IPA.table_widget = function (spec) { that.empty(); that.values = result[that.name]; - if (!that.values) return; - - for (var i=0; i<that.values.length; i++) { - var record = that.get_record(result, i); - that.add_record(record); + if (that.values) { + for (var i=0; i<that.values.length; i++) { + var record = that.get_record(result, i); + that.add_record(record); + } } that.unselect_all(); }; |