Vergleich jscripts/thread.js - 1.2.1 - 1.2.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 89Zeile 89
			if(!message[1])
{
message[1] = "An unknown error occurred.";

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

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

			}
alert('There was an error fetching the posts.\n\n'+message[1]);
}
else if(request.responseText)
{

			}
alert('There was an error fetching the posts.\n\n'+message[1]);
}
else if(request.responseText)
{

			if($('message').value)


			var id = 'message';
if(typeof clickableEditor != 'undefined')

			{

			{

				$('message').value += "\n";





				id = clickableEditor.textarea;
}
if($(id).value)
{
$(id).value += "\n";

			}

			}

			$('message').value += request.responseText;

			$(id).value += request.responseText;

		}
Thread.clearMultiQuoted();
$('quickreply_multiquote').style.display = 'none';
document.input.quoted_ids.value = 'all';

		}
Thread.clearMultiQuoted();
$('quickreply_multiquote').style.display = 'none';
document.input.quoted_ids.value = 'all';

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




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

		$('message').focus();	
},


		$('message').focus();	
},


Zeile 113Zeile 126
		$('quickreply_multiquote').style.display = 'none';
var quoted = Cookie.get("multiquote");
if(quoted)

		$('quickreply_multiquote').style.display = 'none';
var quoted = Cookie.get("multiquote");
if(quoted)

		{

		{

			var post_ids = quoted.split("|");
for(var i=0; i < post_ids.length; i++)
{

			var post_ids = quoted.split("|");
for(var i=0; i < post_ids.length; i++)
{

Zeile 131Zeile 144
	},	

deletePost: function(pid)

	},	

deletePost: function(pid)

	{

	{

		confirmReturn = confirm(quickdelete_confirm);
if(confirmReturn == true) {
form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "editpost.php?action=deletepost&delete=yes");
form.setAttribute("style", "display: none;");

		confirmReturn = confirm(quickdelete_confirm);
if(confirmReturn == true) {
form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "editpost.php?action=deletepost&delete=yes");
form.setAttribute("style", "display: none;");





			var input = document.createElement("input");
input.setAttribute("name", "pid");
input.setAttribute("type", "hidden");

			var input = document.createElement("input");
input.setAttribute("name", "pid");
input.setAttribute("type", "hidden");

Zeile 147Zeile 160
			form.appendChild(input);
document.getElementsByTagName("body")[0].appendChild(form);
form.submit();

			form.appendChild(input);
document.getElementsByTagName("body")[0].appendChild(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)

Zeile 172Zeile 185
	},

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.";
}
alert('There was an error performing the update.\n\n'+message[1]);
Thread.qeCache[pid] = "";
}
else if(request.responseText)
{
$("pid_"+pid).innerHTML = request.responseText;






	{
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 = '';
}
alert('There was an error performing the update.\n\n'+message[1]);
Thread.qeCache[pid] = "";
}
else if(request.responseText)
{
$("pid_"+pid).innerHTML = request.responseText;

			element = $("quickedit_"+pid);
element.focus();
offsetTop = -60;

			element = $("quickedit_"+pid);
element.focus();
offsetTop = -60;

Zeile 198Zeile 216

scrollTo(0, offsetTop);
}


scrollTo(0, offsetTop);
}

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




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

	},

quickEditSave: function(pid)

	},

quickEditSave: function(pid)

Zeile 219Zeile 240
	{
$("pid_"+pid).innerHTML = Thread.qeCache[pid];
Thread.qeCache[pid] = "";

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

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

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

	},

quickEditSaved: function(request, pid)

	},

quickEditSaved: function(request, pid)

Zeile 232Zeile 253
		{
message = request.responseText.match(/<error>(.*)<\/error>/);
if(!message[1])

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

			{

			{

				message[1] = "An unknown error occurred.";

				message[1] = "An unknown error occurred.";

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

			}
alert('There was an error performing the update.\n\n'+message[1]);
}
else if(request.responseText)
{
$("pid_"+pid).innerHTML = request.responseText;

			}
alert('There was an error performing the update.\n\n'+message[1]);
}
else if(request.responseText)
{
$("pid_"+pid).innerHTML = request.responseText;

 
			Thread.qeCache[pid] = "";
}
if(this.spinner)
{
this.spinner.destroy();
this.spinner = '';

		}

		}

		Thread.qeCache[pid] = "";
this.spinner.destroy();
this.spinner = '';

 
	}
}
Event.observe(window, 'load', Thread.init);

	}
}
Event.observe(window, 'load', Thread.init);