Merge "Image create "Copy Data" checkbox wrong label"

This commit is contained in:
Jenkins 2016-04-10 16:35:38 +00:00 committed by Gerrit Code Review
commit ea91f8e93e
1 changed files with 4 additions and 1 deletions

View File

@ -290,7 +290,10 @@ horizon.addInitFunction(horizon.forms.init = function () {
if (typeof data === "undefined" || !visible) {
$input.closest('.form-group').hide();
} else {
$('label[for=' + $input.attr('id') + ']').html(data);
//If the input is a checkbox no need to replace html for label since it has another structure
if($input.attr('type') !== "checkbox"){
$('label[for=' + $input.attr('id') + ']').html(data);
}
$input.closest('.form-group').show();
}
}