summaryrefslogtreecommitdiffstats
path: root/dev/jquery.jtable.forms.js
diff options
context:
space:
mode:
authorMichael Biehler <michael.biehler@baumann-automation.com>2016-04-13 14:18:46 +0200
committerMichael Biehler <michael.biehler@baumann-automation.com>2016-04-13 14:18:46 +0200
commit63474995e8cff7b193d9db357edcfd31797b7341 (patch)
tree9ddf7d877a70cc5f083e71783a45bbdc30d987a3 /dev/jquery.jtable.forms.js
parentbb411ad5918122d48ec4bb2dbf87d22e1d5692f1 (diff)
downloadjtable-63474995e8cff7b193d9db357edcfd31797b7341.zip
jtable-63474995e8cff7b193d9db357edcfd31797b7341.tar.gz
jtable-63474995e8cff7b193d9db357edcfd31797b7341.tar.bz2
Add placeholder support
Diffstat (limited to 'dev/jquery.jtable.forms.js')
-rw-r--r--dev/jquery.jtable.forms.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/jquery.jtable.forms.js b/dev/jquery.jtable.forms.js
index b497a7e..0ef0c96 100644
--- a/dev/jquery.jtable.forms.js
+++ b/dev/jquery.jtable.forms.js
@@ -129,7 +129,7 @@
/* Creates a standart textbox for a field.
*************************************************************************/
_createTextInputForField: function (field, fieldName, value) {
- var $input = $('<input class="' + field.inputClass + '" id="Edit-' + fieldName + '" type="text" name="' + fieldName + '"></input>');
+ var $input = $('<input class="' + field.inputClass + '" placeholder="' + field.placeholder + '" id="Edit-' + fieldName + '" type="text" name="' + fieldName + '"></input>');
if (value != undefined) {
$input.val(value);
}
@@ -142,7 +142,7 @@
/* Creates a password input for a field.
*************************************************************************/
_createPasswordInputForField: function (field, fieldName, value) {
- var $input = $('<input class="' + field.inputClass + '" id="Edit-' + fieldName + '" type="password" name="' + fieldName + '"></input>');
+ var $input = $('<input class="' + field.inputClass + '" placeholder="' + field.placeholder + '" id="Edit-' + fieldName + '" type="password" name="' + fieldName + '"></input>');
if (value != undefined) {
$input.val(value);
}