From 10b33cd5d05f0c266206a25c94db970ecc35f30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 24 May 2018 14:02:25 +0200 Subject: [PATCH] Add placeholder to input in OCdialog prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/js/oc-dialogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.attr('type', password ? 'password' : 'text').attr('id', dialogName + '-input'); + input.attr('type', password ? 'password' : 'text').attr('id', dialogName + '-input').attr('placeholder', name); var label = $('