Update openvk.cls.js

This commit is contained in:
Dmitry Tretyakov 2023-04-25 13:12:31 +07:00
parent 24e5dc2be5
commit 23c6e121c3

View file

@ -108,9 +108,13 @@ document.addEventListener("DOMContentLoaded", function() { //BEGIN
return e.preventDefault();
});
u("#_newPicture").on("click", function(e) {
MessageBox(tr('new_photo'),
MessageBox(tr('new_photo'),
"<form id='tmpPhDelF' action='" + u(this).attr("href") + "' method='POST' enctype='multipart/form-data'>"+
"<div id='tmpdd' style='text-align:center'>"+tr('real_photo')+"<br><br>"+tr('formats')+"<br><br>"+"<input type='file' accept='image/*' name='blob' value='"+tr('select_file')+"'><br><br>"+tr('upload_problems')+"<br></div>"+
"<div id='tmpdd' style='text-align:center'>"+tr('formats')+"<br><br>"+
"<label class=\"button\" style=\"\">"+tr('browse')+
"<input type=\"file\" id=\"blob\" name=\"blob\" style=\"display: none;\" onchange=\"filename.innerHTML=blob.files[0].name\" /></label>"+
"<div id=\"filename\" style=\"margin-top: 10px;\"></div>"+
"<br><br>"+tr('upload_problems')+"<br></div>"+
//"<p><input type='checkbox' name='makeAvatarPost'>"+tr('leave_photo')+"</p>"+
"<input type='hidden' name='hash' value='" + u("meta[name=csrf]").attr("value") + "' />"+
"</form>", [