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

Commit

Permalink
fix(macro): host/service macro visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
loiclau authored and ganoze committed Nov 10, 2017
1 parent 39d4f38 commit 053c9e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions www/include/configuration/configObject/host/formHost.ihtml
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ jQuery(function() {
}
{/literal}{else}{literal}
if ($passwordCheckbox.is(':checked')) {
$passwordCheckbox.parent('span').empty();
$passwordCheckbox.parent('span').hide();
}
{/literal}{/if}{literal}
});
Expand Down Expand Up @@ -620,9 +620,9 @@ function clonerefreshListener(el){

if (jQuery(elem).find("input[id^='macroPassword_']").is(':checked')) {
jQuery(elem).find("input[name^='macroValue']").prop('type', 'password');
jQuery(elem).find("input[id^='macroPassword_']").parent('span').hide();
}
});

}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ jQuery(function() {
}
{/literal}{else}{literal}
if ($passwordCheckbox.is(':checked')) {
$passwordCheckbox.parent('span').empty();
$passwordCheckbox.parent('span').hide();
}
{/literal}{/if}{literal}

Expand Down Expand Up @@ -561,10 +561,11 @@ jQuery(function() {

if (jQuery(elem).find("input[id^='macroPassword_']").is(':checked')) {
jQuery(elem).find("input[name^='macroValue']").prop('type', 'password');
}
});
jQuery(elem).find("input[id^='macroPassword_']").parent('span').hide();
}
});
}
});
});
{/literal}{/if}{literal}
});
});
Expand Down

0 comments on commit 053c9e9

Please sign in to comment.