Replace on/off switch with yes/no where approriate

This commit is contained in:
Stian Thorgersen committed 2013-11-26 13:35:32 +00:00
1 parent 36f91ac75c
commit 57987c9ae7
1 file changed
+2 -2
@@ -431,8 +431,8 @@ module.directive('onoffswitch', function() {
offText: '@offText'
},
compile: function(element, attrs) {
if (!attrs.onText) { attrs.onText = "ON"; }
if (!attrs.offText) { attrs.offText = "OFF"; }
if (!attrs.onText) { attrs.onText = "YES"; }
if (!attrs.offText) { attrs.offText = "NO"; }
var html = "<div class=\"onoffswitch\">" +
"<input type=\"checkbox\" data-ng-model=\"ngModel\" class=\"onoffswitch-checkbox\" name=\"" + attrs.name + "\" id=\"" + attrs.id + "\">" +