diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2016-10-17 16:49:18 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2016-10-17 16:49:18 +0300 |
commit | 5329a8c9e293e38e7a376ce11ce87f4068a7dc6d (patch) | |
tree | 29df293a0d87733bd4fa49d5a5f8c4f372202f51 /plugins/CorePluginsAdmin/angularjs | |
parent | 0c02f7d034447edd2fe6ab9bada900403c8389dd (diff) |
when placeholder is changed, show the updated text
Diffstat (limited to 'plugins/CorePluginsAdmin/angularjs')
-rw-r--r-- | plugins/CorePluginsAdmin/angularjs/field/field.directive.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/CorePluginsAdmin/angularjs/field/field.directive.js b/plugins/CorePluginsAdmin/angularjs/field/field.directive.js index ee35c35075..1268fb881f 100644 --- a/plugins/CorePluginsAdmin/angularjs/field/field.directive.js +++ b/plugins/CorePluginsAdmin/angularjs/field/field.directive.js @@ -134,6 +134,14 @@ } }); + if ('undefined' !== typeof $scope.placeholder && $scope.placeholder !== null) { + $scope.$watch('placeholder', function (val, oldVal) { + if (val !== oldVal) { + $scope.field.uiControlAttributes.placeholder = val; + } + }); + } + $scope.$watch('disabled', function (val, oldVal) { if (val !== oldVal) { $scope.field.uiControlAttributes.disabled = val; |