diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-12 14:47:29 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2011-01-12 21:47:05 -0500 |
commit | b79bf4ab1757eb08f7209f158f1f3a386ace8c96 (patch) | |
tree | 53ae8597469de4481d35a36e29172fa2cd4cf17d /install/static/hbacrule.js | |
parent | 4da9228fb2ac34adab8eb1884ae414236adb84fa (diff) | |
download | freeipa.git-b79bf4ab1757eb08f7209f158f1f3a386ace8c96.tar.gz freeipa.git-b79bf4ab1757eb08f7209f158f1f3a386ace8c96.tar.xz freeipa.git-b79bf4ab1757eb08f7209f158f1f3a386ace8c96.zip |
javascript lint cleanup
Diffstat (limited to 'install/static/hbacrule.js')
-rwxr-xr-x | install/static/hbacrule.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/install/static/hbacrule.js b/install/static/hbacrule.js index 0e6d82cc..16f21108 100755 --- a/install/static/hbacrule.js +++ b/install/static/hbacrule.js @@ -475,11 +475,10 @@ function ipa_hbacrule_details_facet(spec) { // use setattr/addattr if param_info not available if (!param_info) { - for (var k=0; k<values.length; k++) { + for (var l=0; l<values.length; l++) { modify_operation.command.set_option( - k == 0 ? 'setattr' : 'addattr', - field.name+'='+values[k] - ); + l === 0 ? 'setattr' : 'addattr', + field.name+'='+values[l]); modify_operation.execute = true; } continue; @@ -774,7 +773,7 @@ function ipa_hbacrule_accesstime_widget(spec) { button.replaceWith(ipa_button({ 'label': button.val(), 'icon': 'ui-icon-plus', - 'click': function() { that.add(that.container) } + 'click': function() { that.add(that.container); } })); var input = $('input[name="'+that.name+'"]', that.container); @@ -790,7 +789,7 @@ function ipa_hbacrule_accesstime_widget(spec) { that.save = function() { var value = $('input[name="'+that.name+'"]:checked', that.container).val(); - if (value == '') { + if (value === '') { return that.table.save(); } else { return []; |