summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-08-26 18:36:54 +0200
committerEndi S. Dewata <edewata@redhat.com>2011-08-29 15:21:15 +0000
commit508217ada7330de8be576e04289c379fac45b276 (patch)
tree2f8178d43f40a2ce18b960d518f41c05cb8e4fef /install/ui/widget.js
parent64c100947bd596d30716a9345743ccf376dd2a2d (diff)
downloadfreeipa-508217ada7330de8be576e04289c379fac45b276.tar.gz
freeipa-508217ada7330de8be576e04289c379fac45b276.tar.xz
freeipa-508217ada7330de8be576e04289c379fac45b276.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.js10
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();
};