feat(apps): minor progress on apps edit view

This commit is contained in:
Torkel Ödegaard
2016-01-09 11:07:34 +01:00
parent 9943b9a226
commit d932653c7f
7 changed files with 54 additions and 20 deletions

View File

@@ -62,12 +62,13 @@ function (angular, coreModule, kbn) {
var label = '<label for="' + scope.$id + model + '" class="checkbox-label">' +
text + tip + '</label>';
var template = '<input class="cr1" id="' + scope.$id + model + '" type="checkbox" ' +
var template =
'<input class="cr1" id="' + scope.$id + model + '" type="checkbox" ' +
' ng-model="' + model + '"' + ngchange +
' ng-checked="' + model + '"></input>' +
' <label for="' + scope.$id + model + '" class="cr1"></label>';
template = label + template;
template = template + label;
elem.replaceWith($compile(angular.element(template))(scope));
}
};