Upload a file with a password
This commit is contained in:
@@ -425,9 +425,14 @@ define([
|
||||
cb = cb || function () {};
|
||||
opt = opt || {};
|
||||
|
||||
var input = dialog.textInput();
|
||||
var inputBlock = opt.password ? UI.passwordInput() : dialog.textInput();
|
||||
var input = opt.password ? $(inputBlock).find('input')[0] : inputBlock;
|
||||
input.value = typeof(def) === 'string'? def: '';
|
||||
|
||||
if (opt.password) {
|
||||
$(inputBlock).find('.cp-checkmark').css('margin-bottom', '15px');
|
||||
}
|
||||
|
||||
var message;
|
||||
if (typeof(msg) === 'string') {
|
||||
if (!force) { msg = Util.fixHTML(msg); }
|
||||
@@ -441,7 +446,7 @@ define([
|
||||
var cancel = dialog.cancelButton(opt.cancel);
|
||||
var frame = dialog.frame([
|
||||
message,
|
||||
input,
|
||||
inputBlock,
|
||||
dialog.nav([ cancel, ok, ]),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user