changed position for checkbox label

This commit is contained in:
Torkel Ödegaard
2015-05-05 13:37:20 +02:00
parent 12c770f0ab
commit d4c0d5d81b
+1 -6
View File
@@ -72,12 +72,7 @@ function (angular, kbn) {
' ng-checked="' + attrs.model + '"></input>' +
' <label for="' + scope.$id + attrs.model + '" class="cr1"></label>';
if (attrs.position === "front") {
template = label + template;
} else {
template = template + label;
}
template = label + template;
elem.replaceWith($compile(angular.element(template))(scope));
}
};