mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add placeholder to input in OCdialog prompt
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
33b65faba0
commit
10b33cd5d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue