Zeile 147 | Zeile 147 |
---|
confirmReturn = confirm(quickdelete_confirm); if(confirmReturn == true) {
|
confirmReturn = confirm(quickdelete_confirm); if(confirmReturn == true) {
|
form = document.createElement("form"); form.setAttribute("method", "post"); form.setAttribute("action", "editpost.php?action=deletepost&delete=1"); form.setAttribute("style", "display: none;");
| var form = new Element("form", { method: "post", action: "editpost.php?action=deletepost&delete=1", style: "display: none;" });
|
if(my_post_key) {
|
if(my_post_key) {
|
if(MyBB.browser == "ie")
| form.insert({ bottom: new Element("input", { name: "my_post_key", type: "hidden", value: my_post_key }) }); }
form.insert({ bottom: new Element("input",
|
{
|
{
|
var input = document.createElement("<input name=\"my_post_key\">"); } else { var input = document.createElement("input"); input.setAttribute("name", "my_post_key"); } input.setAttribute("type", "hidden"); input.setAttribute("value", my_post_key); form.appendChild(input); }
if(MyBB.browser == "ie") { var input = document.createElement("<input name=\"pid\">"); } else { var input = document.createElement("input"); input.setAttribute("name", "pid"); } input.setAttribute("type", "hidden"); input.setAttribute("value", pid);
| name: "pid", type: "hidden", value: pid }) });
|
|
|
form.appendChild(input); document.getElementsByTagName("body")[0].appendChild(form);
| $$("body")[0].insert({ bottom: form });
|
form.submit(); } },
| form.submit(); } },
|
Zeile 210 | Zeile 197 |
---|
},
quickEditLoaded: function(request, pid)
|
},
quickEditLoaded: function(request, pid)
|
{ if(request.responseText.match(/<error>(.*)<\/error>/)) { message = request.responseText.match(/<error>(.*)<\/error>/); if(!message[1]) { message[1] = "An unknown error occurred."; } if(this.spinner) {
| { if(request.responseText.match(/<error>(.*)<\/error>/)) { message = request.responseText.match(/<error>(.*)<\/error>/); if(!message[1]) { message[1] = "An unknown error occurred."; } if(this.spinner) {
|
this.spinner.destroy(); this.spinner = '';
|
this.spinner.destroy(); this.spinner = '';
|
}
| }
|
alert('There was an error performing the update.\n\n'+message[1]); Thread.qeCache[pid] = ""; }
| alert('There was an error performing the update.\n\n'+message[1]); Thread.qeCache[pid] = ""; }
|
Zeile 240 | Zeile 227 |
---|
while(element);
scrollTo(0, offsetTop);
|
while(element);
scrollTo(0, offsetTop);
|
}
| }
|
if(this.spinner) { this.spinner.destroy();
| if(this.spinner) { this.spinner.destroy();
|
Zeile 325 | Zeile 312 |
---|
Event.stop(e);
if(this.quick_replying)
|
Event.stop(e);
if(this.quick_replying)
|
{
| {
|
return false; }
| return false; }
|
Zeile 338 | Zeile 325 |
---|
quickReplyDone: function(request) {
|
quickReplyDone: function(request) {
|
if($('captcha_img'))
| if($('captcha_trow'))
|
{ captcha = request.responseText.match(/^<captcha>([0-9a-zA-Z]+)(\|([0-9a-zA-Z]+)|)<\/captcha>/); if(captcha) { request.responseText = request.responseText.replace(/^<captcha>(.*)<\/captcha>/, '');
|
{ captcha = request.responseText.match(/^<captcha>([0-9a-zA-Z]+)(\|([0-9a-zA-Z]+)|)<\/captcha>/); if(captcha) { request.responseText = request.responseText.replace(/^<captcha>(.*)<\/captcha>/, '');
|
if(captcha[1])
| if(captcha[1] == "reload") { Recaptcha.reload(); } else if($("captcha_img"))
|
{
|
{
|
imghash = captcha[1]; $('imagehash').value = imghash; if(captcha[3]) { $('imagestring').type = "hidden"; $('imagestring').value = captcha[3]; // hide the captcha $('captcha_trow').style.display = "none"; } else
| if(captcha[1])
|
{
|
{
|
$('captcha_img').src = "captcha.php?action=regimage&imagehash="+imghash; $('imagestring').type = "text"; $('imagestring').value = ""; $('captcha_trow').style.display = "";
| imghash = captcha[1]; $('imagehash').value = imghash; if(captcha[3]) { $('imagestring').type = "hidden"; $('imagestring').value = captcha[3]; // hide the captcha $('captcha_trow').style.display = "none"; } else { $('captcha_img').src = "captcha.php?action=regimage&imagehash="+imghash; $('imagestring').type = "text"; $('imagestring').value = ""; $('captcha_trow').style.display = ""; }
|
} } }
| } } }
|