Skip to content

Commit

Permalink
Merge pull request #3022 from camptocamp/fix_ie_11_placeholder
Browse files Browse the repository at this point in the history
Use ng-attr to bind interpolated attributes
  • Loading branch information
ger-benjamin committed Oct 24, 2017
2 parents a8bb027 + a02b6e9 commit 374fb05
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions contribs/gmf/src/directives/partials/authentication.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@
class="form-control"
name="oldpassword"
ng-model="authCtrl.oldPwdVal"
placeholder="{{'Old password' | translate}}"/>
ng-attr-placeholder="{{'Old password' | translate}}"/>
</div>
<div class="form-group">
<input
type="password"
class="form-control"
name="newpassword"
ng-model="authCtrl.newPwdVal"
placeholder="{{'New password' | translate}}"/>
ng-attr-placeholder="{{'New password' | translate}}"/>
</div>
<div class="form-group">
<input
type="password"
class="form-control"
name="newpasswordconfirm"
ng-model="authCtrl.newPwdConfVal"
placeholder="{{'Confirm new password' | translate}}"/>
ng-attr-placeholder="{{'Confirm new password' | translate}}"/>
</div>
<div class="form-group">
<input
Expand Down Expand Up @@ -114,15 +114,15 @@ <h4 class="modal-title">
class="form-control"
name="login"
ng-model="authCtrl.loginVal"
placeholder="{{'Username' | translate}}" />
ng-attr-placeholder="{{'Username' | translate}}" />
</div>
<div class="form-group">
<input
type="password"
class="form-control"
name="password"
ng-model="authCtrl.pwdVal"
placeholder="{{'Password' | translate}}"/>
ng-attr-placeholder="{{'Password' | translate}}"/>
</div>
<div class="form-group">
<input
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/src/directives/partials/featurestyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<input
ng-model="fsCtrl.getSetName"
ng-model-options="{getterSetter: true}"
placeholder="{{'Name' | translate}}"
ng-attr-placeholder="{{'Name' | translate}}"
class="form-control"/>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions contribs/gmf/src/directives/partials/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
ng-model="customField.value"
class="form-control"
type="number"
placeholder="{{customField.name | translate}}">
ng-attr-placeholder="{{customField.name | translate}}">

<input
ng-if="customField.type === 'text'"
ng-model="customField.value"
class="form-control"
type="text"
placeholder="{{customField.name | translate}}">
ng-attr-placeholder="{{customField.name | translate}}">

<textarea
ng-if="customField.type === 'textarea'"
ng-model="customField.value"
class="form-control"
row="3"
placeholder="{{customField.name | translate}}"></textarea>
ng-attr-placeholder="{{customField.name | translate}}"></textarea>

<div
ng-if="customField.type === 'checkbox'"
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/src/directives/partials/search.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="gmf-search">
<input type="text" placeholder="{{ctrl.placeholder}}"
<input type="text" ng-attr-placeholder="{{ctrl.placeholder}}"
class="form-control"
ng-model="ctrl.inputValue"
ngeo-search="ctrl.options"
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/directives/partials/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ <h4 class="modal-title" translate>Share this map</h4>
<div class="gmf-share-email" ng-if="::shareCtrl.enableEmail">
<div class="form-group">
<label for="gmfShareInputEmail" translate>Send this link to</label>
<input type="email" class="form-control" name="inputEmail" id="gmfShareInputEmail" placeholder="Email" ng-model="shareCtrl.email" required>
<input type="email" class="form-control" name="inputEmail" id="gmfShareInputEmail" placeholder="E-mail" ng-model="shareCtrl.email" required>
<span ng-show="gmfShareForm.$submitted || gmfShareForm.inputEmail.$touched">
<span class="text-danger" ng-show="gmfShareForm.inputEmail.$error.email || gmfShareForm.inputEmail.$error.required">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
{{'Invalid email.' | translate}}</span>
</span>
</div>
<div class="form-group">
<textarea class="form-control" placeholder="{{'Message (optional)' | translate }}" ng-model="shareCtrl.message"></textarea>
<textarea class="form-control" ng-attr-placeholder="{{'Message (optional)' | translate }}" ng-model="shareCtrl.message"></textarea>
</div>
<span class="text-success" ng-if="shareCtrl.successfullySent">
<i class="fa fa-check" aria-hidden="true"></i>
Expand Down

0 comments on commit 374fb05

Please sign in to comment.