summaryrefslogtreecommitdiffstats
path: root/install/static/rule.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-12 14:47:29 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2011-01-12 21:47:05 -0500
commitb79bf4ab1757eb08f7209f158f1f3a386ace8c96 (patch)
tree53ae8597469de4481d35a36e29172fa2cd4cf17d /install/static/rule.js
parent4da9228fb2ac34adab8eb1884ae414236adb84fa (diff)
downloadfreeipa-b79bf4ab1757eb08f7209f158f1f3a386ace8c96.tar.gz
freeipa-b79bf4ab1757eb08f7209f158f1f3a386ace8c96.tar.xz
freeipa-b79bf4ab1757eb08f7209f158f1f3a386ace8c96.zip
javascript lint cleanup
Diffstat (limited to 'install/static/rule.js')
-rwxr-xr-xinstall/static/rule.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/install/static/rule.js b/install/static/rule.js
index baf2652a5..58ad3b80b 100755
--- a/install/static/rule.js
+++ b/install/static/rule.js
@@ -70,8 +70,8 @@ function ipa_rule_details_section(spec){
span.append('<br/>');
}
- for (var i=0; i<that.tables.length; i++) {
- var table = that.tables[i];
+ for (var j=0; i<that.tables.length; i++) {
+ var table = that.tables[j];
param_info = ipa_get_param_info(that.entity_name, table.field_name);
@@ -91,7 +91,7 @@ function ipa_rule_details_section(spec){
function update_tables(value) {
- var enabled = '' == value;
+ var enabled = ('' === value);
for (var i=0; i<that.tables.length; i++) {
var table = that.tables[i];
@@ -105,7 +105,9 @@ function ipa_rule_details_section(spec){
category.reset = function() {
category.widget_reset();
var values = category.save();
- if (values.length == 0) return;
+ if (values.length === 0){
+ return;
+ }
var value = values[0];
update_tables(value);
};