Vergleich jscripts/thread.js - 1.2.5 - 1.2.7

  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]);
}

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

Zeile 104Zeile 109
				$(id).value += "\n";
}
$(id).value += request.responseText;

				$(id).value += "\n";
}
$(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();	

	},

	},

	
clearMultiQuoted: function()
{

	
clearMultiQuoted: function()
{

Zeile 130Zeile 138
						element.src = element.src.replace("postbit_multiquote_on.gif", "postbit_multiquote.gif");
}
}

						element.src = element.src.replace("postbit_multiquote_on.gif", "postbit_multiquote.gif");
}
}

			}

			}

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

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

Zeile 163Zeile 171
	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"});

		}
Thread.qeCache[pid] = $("pid_"+pid).innerHTML;
this.spinner = new ActivityIndicator("body", {image: "images/spinner_big.gif"});

Zeile 177Zeile 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] = "";
}






	{
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;

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

Zeile 203Zeile 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)

	{

	{

		message = $("quickedit_"+pid).value;
if(message == "")

		message = $("quickedit_"+pid).value;
if(message == "")

		{

		{

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

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

Zeile 224Zeile 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 = '';

		}
},


		}
},


Zeile 237Zeile 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);