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

fix(macro) host/service macro visibility #5873

Merged
merged 2 commits into from
Nov 10, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,9 +561,8 @@ 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