Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
* Refs #3797 : Fix javascript for password macro
Browse files Browse the repository at this point in the history
  • Loading branch information
leoncx committed Sep 28, 2015
1 parent d2b8627 commit 4e12b10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions www/include/common/javascript/centreon/macroPasswordField.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ function change_macro_input_type(box, must_disable) {
if (must_disable === true) {
jQuery(box).parent().hide();
}
input.removeAttr("type");
if (box.checked) {
input.prop('type', 'password');
input[0].type = 'password';
} else {
input.prop('type', 'text');
input[0].type = 'text';
}
}

0 comments on commit 4e12b10

Please sign in to comment.