diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-05-22 14:47:44 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-26 12:37:39 +0200 |
commit | 6e7d4ad468854cce8a9a76f3abf8268e3813ff93 (patch) | |
tree | 2d6b2b48e196478e598929a680b7afe14b128a6d | |
parent | f9adc5a5f3ed84ae23c4261f7316ad2e84952d68 (diff) | |
download | freeipa-6e7d4ad468854cce8a9a76f3abf8268e3813ff93.tar.gz freeipa-6e7d4ad468854cce8a9a76f3abf8268e3813ff93.tar.xz freeipa-6e7d4ad468854cce8a9a76f3abf8268e3813ff93.zip |
webui: placeholder attribute support in textbox and textarea
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
-rw-r--r-- | install/ui/src/freeipa/widget.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 8dbfe124b..b058293fe 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -269,6 +269,12 @@ IPA.input_widget = function(spec) { var that = IPA.widget(spec); /** + * Placeholder + * @property {string} + */ + that.placeholder = text.get(spec.placeholder); + + /** * Widget's width. * @deprecated * @property {number} @@ -709,6 +715,7 @@ IPA.text_widget = function(spec) { 'class': 'form-control', size: that.size, title: that.tooltip, + placeholder: that.placeholder, keyup: function() { that.on_value_changed(); } @@ -1975,6 +1982,7 @@ IPA.textarea_widget = function (spec) { 'class': 'form-control', readOnly: !!that.read_only, title: that.tooltip, + placeholder: that.placeholder, keyup: function() { that.on_value_changed(); } |