From a02b6e95256f8909d1cc0311f1672a70e1ef0c9e Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Tue, 24 Oct 2017 10:47:50 +0200 Subject: [PATCH] Use ng-attr to bind interpolated attributes --- .../gmf/src/directives/partials/authentication.html | 10 +++++----- contribs/gmf/src/directives/partials/featurestyle.html | 2 +- contribs/gmf/src/directives/partials/print.html | 6 +++--- contribs/gmf/src/directives/partials/search.html | 2 +- contribs/gmf/src/directives/partials/share.html | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/contribs/gmf/src/directives/partials/authentication.html b/contribs/gmf/src/directives/partials/authentication.html index 0435f6102d6a..52cefef763e0 100644 --- a/contribs/gmf/src/directives/partials/authentication.html +++ b/contribs/gmf/src/directives/partials/authentication.html @@ -42,7 +42,7 @@ class="form-control" name="oldpassword" ng-model="authCtrl.oldPwdVal" - placeholder="{{'Old password' | translate}}"/> + ng-attr-placeholder="{{'Old password' | translate}}"/>
+ ng-attr-placeholder="{{'New password' | translate}}"/>
+ ng-attr-placeholder="{{'Confirm new password' | translate}}"/>
class="form-control" name="login" ng-model="authCtrl.loginVal" - placeholder="{{'Username' | translate}}" /> + ng-attr-placeholder="{{'Username' | translate}}" />
class="form-control" name="password" ng-model="authCtrl.pwdVal" - placeholder="{{'Password' | translate}}"/> + ng-attr-placeholder="{{'Password' | translate}}"/>
diff --git a/contribs/gmf/src/directives/partials/print.html b/contribs/gmf/src/directives/partials/print.html index e958d4b07906..b87abca1cf76 100644 --- a/contribs/gmf/src/directives/partials/print.html +++ b/contribs/gmf/src/directives/partials/print.html @@ -10,21 +10,21 @@ ng-model="customField.value" class="form-control" type="number" - placeholder="{{customField.name | translate}}"> + ng-attr-placeholder="{{customField.name | translate}}"> + ng-attr-placeholder="{{customField.name | translate}}"> + ng-attr-placeholder="{{customField.name | translate}}">