Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2016-10-17 16:49:18 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-10-17 16:49:18 +0300
commit5329a8c9e293e38e7a376ce11ce87f4068a7dc6d (patch)
tree29df293a0d87733bd4fa49d5a5f8c4f372202f51 /plugins/CorePluginsAdmin/angularjs
parent0c02f7d034447edd2fe6ab9bada900403c8389dd (diff)
when placeholder is changed, show the updated text
Diffstat (limited to 'plugins/CorePluginsAdmin/angularjs')
-rw-r--r--plugins/CorePluginsAdmin/angularjs/field/field.directive.js8
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;