Browse Source
Add placeholder to input in OCdialog prompt
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/9582/head
Julius Härtl
8 years ago
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with
1 additions and
1 deletions
-
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); |
|
|
|
|