Vergleich jscripts/thread.js - 1.6.10 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 121Zeile 121
			this.spinner.destroy();
this.spinner = '';
}

			this.spinner.destroy();
this.spinner = '';
}

		$('message').focus();	

		$('message').focus();

	},

clearMultiQuoted: function()

	},

clearMultiQuoted: function()

Zeile 140Zeile 140
			});
}
Cookie.unset('multiquote');

			});
}
Cookie.unset('multiquote');

	},	

	},


deletePost: function(pid)
{


deletePost: function(pid)
{

Zeile 170Zeile 170

$$("body")[0].insert({ bottom: form });
form.submit();


$$("body")[0].insert({ bottom: form });
form.submit();

		}
},


		}
},


	reportPost: function(pid)
{
MyBB.popupWindow("report.php?pid="+pid, "reportPost", 400, 300)

	reportPost: function(pid)
{
MyBB.popupWindow("report.php?pid="+pid, "reportPost", 400, 300)

	},

	},


quickEdit: function(pid)
{
if(!$("pid_"+pid))


quickEdit: function(pid)
{
if(!$("pid_"+pid))

		{
return false;
}

		{
return false;
}


if(Thread.qeCache[pid])


if(Thread.qeCache[pid])

		{

		{

			return false;
}


			return false;
}


Zeile 197Zeile 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(request.responseText.match(/<error>(.*)<\/error>/))
{
message = request.responseText.match(/<error>(.*)<\/error>/);
if(!message[1])
{
message[1] = "An unknown error occurred.";

			}
if(this.spinner)
{

			}
if(this.spinner)
{

Zeile 243Zeile 243
			return false;
}
this.spinner = new ActivityIndicator("body", {image: imagepath + "/spinner_big.gif"});

			return false;
}
this.spinner = new ActivityIndicator("body", {image: imagepath + "/spinner_big.gif"});

		



		postData = "value="+encodeURIComponent(message).replace(/\+/g, "%2B");
new Ajax.Request('xmlhttp.php?action=edit_post&do=update_post&pid='+pid+"&my_post_key="+my_post_key, {method: 'post', postBody: postData, onComplete: function(request) { Thread.quickEditSaved(request, pid); }});
},

		postData = "value="+encodeURIComponent(message).replace(/\+/g, "%2B");
new Ajax.Request('xmlhttp.php?action=edit_post&do=update_post&pid='+pid+"&my_post_key="+my_post_key, {method: 'post', postBody: postData, onComplete: function(request) { Thread.quickEditSaved(request, pid); }});
},

Zeile 253Zeile 253
		$("pid_"+pid).innerHTML = Thread.qeCache[pid];
Thread.qeCache[pid] = "";
if(this.spinner)

		$("pid_"+pid).innerHTML = Thread.qeCache[pid];
Thread.qeCache[pid] = "";
if(this.spinner)

		{

		{

			this.spinner.destroy();
this.spinner = '';
}

			this.spinner.destroy();
this.spinner = '';
}

Zeile 264Zeile 264
		if(request.responseText.match(/<error>(.*)<\/error>/))
{
message = request.responseText.match(/<error>(.*)<\/error>/);

		if(request.responseText.match(/<error>(.*)<\/error>/))
{
message = request.responseText.match(/<error>(.*)<\/error>/);

			if(!message[1])
{
message[1] = "An unknown error occurred.";
}

			if(!message[1])
{
message[1] = "An unknown error occurred.";
}

			if(this.spinner)
{
this.spinner.destroy();

			if(this.spinner)
{
this.spinner.destroy();

Zeile 291Zeile 291
			$("pid_"+pid).innerHTML = message;
Thread.qeCache[pid] = "";
}

			$("pid_"+pid).innerHTML = message;
Thread.qeCache[pid] = "";
}

		



		if(this.spinner)
{
this.spinner.destroy();

		if(this.spinner)
{
this.spinner.destroy();

Zeile 300Zeile 300
	},

initQuickReply: function()

	},

initQuickReply: function()

	{

	{

		if($('quick_reply_form') && use_xmlhttprequest == 1)
{
Event.observe($('quick_reply_submit'), "click", Thread.quickReply.bindAsEventListener(this));

		if($('quick_reply_form') && use_xmlhttprequest == 1)
{
Event.observe($('quick_reply_submit'), "click", Thread.quickReply.bindAsEventListener(this));

		}

		}

	},

quickReply: function(e)

	},

quickReply: function(e)

	{

	{

		Event.stop(e);

if(this.quick_replying)

		Event.stop(e);

if(this.quick_replying)

		{

		{

			return false;
}


			return false;
}


Zeile 331Zeile 331
			if(captcha)
{
request.responseText = request.responseText.replace(/^<captcha>(.*)<\/captcha>/, '');

			if(captcha)
{
request.responseText = request.responseText.replace(/^<captcha>(.*)<\/captcha>/, '');





				if(captcha[1] == "reload")
{
Recaptcha.reload();

				if(captcha[1] == "reload")
{
Recaptcha.reload();

				}

				}

				else if($("captcha_img"))
{
if(captcha[1])

				else if($("captcha_img"))
{
if(captcha[1])

Zeile 343Zeile 343
						imghash = captcha[1];
$('imagehash').value = imghash;
if(captcha[3])

						imghash = captcha[1];
$('imagehash').value = imghash;
if(captcha[3])

						{

						{

							$('imagestring').type = "hidden";
$('imagestring').value = captcha[3];
// hide the captcha

							$('imagestring').type = "hidden";
$('imagestring').value = captcha[3];
// hide the captcha

Zeile 363Zeile 363
		if(request.responseText.match(/<error>([^<]*)<\/error>/))
{
message = request.responseText.match(/<error>([^<]*)<\/error>/);

		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(!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 posting your reply:\n\n'+message[1]);
}
else if(request.responseText.match(/id="post_([0-9]+)"/))

			alert('There was an error posting your reply:\n\n'+message[1]);
}
else if(request.responseText.match(/id="post_([0-9]+)"/))

		{

		{

			var pid = request.responseText.match(/id="post_([0-9]+)"/)[1];
var post = document.createElement("div");
post.innerHTML = request.responseText;
$('posts').appendChild(post);

			var pid = request.responseText.match(/id="post_([0-9]+)"/)[1];
var post = document.createElement("div");
post.innerHTML = request.responseText;
$('posts').appendChild(post);

			if(MyBB.browser == "ie" || MyBB.browser == "opera" || MyBB.browser == "safari" || MyBB.browser == "chrome")
{
var scripts = request.responseText.extractScripts();
scripts.each(function(script)
{
eval(script);
});
}

			request.responseText.evalScripts();








			Form.reset('quick_reply_form');
if($('lastpid'))
{

			Form.reset('quick_reply_form');
if($('lastpid'))
{

Zeile 398Zeile 391
		}
else
{

		}
else
{

			request.responseText.evalScripts(); 

			request.responseText.evalScripts();

		}

		}

		



		if(this.spinner)
{
this.spinner.destroy();

		if(this.spinner)
{
this.spinner.destroy();