Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fixing auto asterisk for required on firefox #62
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Apr 21, 2015
1 parent 679b515 commit e6258b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng-fab-form-validations-directive-f.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ angular.module('ngFabForm')
for (var i = 0; i < labels.length; i++) {
var label = labels[i];
// don't append twice if multiple inputs with the same name
if (label.innerText.slice(-cfg.asteriskStr.length) !== cfg.asteriskStr) {
label.innerText = label.innerText + cfg.asteriskStr;
if (label.textContent.slice(-cfg.asteriskStr.length) !== cfg.asteriskStr) {
label.textContent = label.textContent + cfg.asteriskStr;
}
}
}
Expand Down

0 comments on commit e6258b0

Please sign in to comment.