summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-05-24 14:02:25 +0200
committerJulius Härtl <jus@bitgrid.net>2018-05-24 14:02:25 +0200
commit10b33cd5d05f0c266206a25c94db970ecc35f30b (patch)
treeef25bcf8d49b15453577632f1911443fa0332482 /core
parent33b65faba020804e5fbe54d281eeb2dd384854f2 (diff)
downloadnextcloud-server-10b33cd5d05f0c266206a25c94db970ecc35f30b.tar.gz
nextcloud-server-10b33cd5d05f0c266206a25c94db970ecc35f30b.zip
Add placeholder to input in OCdialog prompt
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/js/oc-dialogs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 97b9d91023d..3c3ed1469cb 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -122,7 +122,7 @@ var OCdialogs = {
type : 'notice'
});
var input = $('<input/>');
- input.attr('type', password ? 'password' : 'text').attr('id', dialogName + '-input');
+ input.attr('type', password ? 'password' : 'text').attr('id', dialogName + '-input').attr('placeholder', name);
var label = $('<label/>').attr('for', dialogName + '-input').text(name + ': ');
$dlg.append(label);
$dlg.append(input);