Vergleich jscripts/thread.js - 1.2.0 - 1.2.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 94Zeile 94
		}
else if(request.responseText)
{

		}
else if(request.responseText)
{

			if($('message').value)


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

			{

			{

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

				id = clickableEditor.textarea;

			}

			}

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





			if($(id).value)
{
$(id).value += "\n";
}
$(id).value += request.responseText;

		}
Thread.clearMultiQuoted();
$('quickreply_multiquote').style.display = 'none';

		}
Thread.clearMultiQuoted();
$('quickreply_multiquote').style.display = 'none';

Zeile 109Zeile 114
	},

clearMultiQuoted: function()

	},

clearMultiQuoted: function()

	{

	{

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

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

Zeile 131Zeile 136
	},	

deletePost: function(pid)

	},	

deletePost: function(pid)

	{

	{

		confirmReturn = confirm(quickdelete_confirm);
if(confirmReturn == true) {
form = document.createElement("form");

		confirmReturn = confirm(quickdelete_confirm);
if(confirmReturn == true) {
form = document.createElement("form");

Zeile 153Zeile 158
	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;
}
if(Thread.qeCache[pid])
{
return false;
}

		{
return false;
}
if(Thread.qeCache[pid])
{
return false;
}

		Thread.qeCache[pid] = $("pid_"+pid).innerHTML;
this.spinner = new ActivityIndicator("body", {image: "images/spinner_big.gif"});
new ajax('xmlhttp.php?action=edit_post&do=get_post&pid='+pid, {method: 'get', onComplete: function(request) { Thread.quickEditLoaded(request, pid); }});

		Thread.qeCache[pid] = $("pid_"+pid).innerHTML;
this.spinner = new ActivityIndicator("body", {image: "images/spinner_big.gif"});
new ajax('xmlhttp.php?action=edit_post&do=get_post&pid='+pid, {method: 'get', onComplete: function(request) { Thread.quickEditLoaded(request, pid); }});

Zeile 181Zeile 186
				message[1] = "An unknown error occurred.";
}
alert('There was an error performing the update.\n\n'+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;

		}
else if(request.responseText)
{
$("pid_"+pid).innerHTML = request.responseText;

 
			element = $("quickedit_"+pid);
element.focus();
offsetTop = -60;
do
{
offsetTop += element.offsetTop || 0;
element = element.offsetParent;
}
while(element);

scrollTo(0, offsetTop);

		}

		}

		element = $("quickedit_"+pid);
element.focus();
offsetTop = -60;
do
{
offsetTop += element.offsetTop || 0;
element = element.offsetParent;
} while(element);

scrollTo(0, offsetTop);


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

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