ON/OFF or YES/NO - that is the question!
This commit is contained in:
parent
a7a5156b6a
commit
d20be22ab5
1 changed files with 2 additions and 2 deletions
|
@ -431,8 +431,8 @@ module.directive('onoffswitch', function() {
|
|||
offText: '@offText'
|
||||
},
|
||||
compile: function(element, attrs) {
|
||||
if (!attrs.onText) { attrs.onText = "YES"; }
|
||||
if (!attrs.offText) { attrs.offText = "NO"; }
|
||||
if (!attrs.onText) { attrs.onText = "ON"; }
|
||||
if (!attrs.offText) { attrs.offText = "OFF"; }
|
||||
|
||||
var html = "<div class=\"onoffswitch\">" +
|
||||
"<input type=\"checkbox\" data-ng-model=\"ngModel\" class=\"onoffswitch-checkbox\" name=\"" + attrs.name + "\" id=\"" + attrs.id + "\">" +
|
||||
|
|
Loading…
Reference in a new issue