Vergleich jscripts/thread.js - 1.2.0 - 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]);

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

		}

		}

		else if(request.responseText)

		else if(request.responseText)

		{
if($('message').value)






		{
var id = 'message';
if(typeof clickableEditor != 'undefined')
{
id = clickableEditor.textarea;
}
if($(id).value)

			{

			{

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

				$(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 158Zeile 171
	quickEdit: function(pid)
{
if(!$("pid_"+pid))

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

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

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

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

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

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.";
}






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

			alert('There was an error performing the update.\n\n'+message[1]);

		}


			Thread.qeCache[pid] = "";
}

		else if(request.responseText)

		else if(request.responseText)

		{

		{

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

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

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









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

scrollTo(0, offsetTop);
}
if(this.spinner)

		{

		{

			offsetTop += element.offsetTop || 0;
element = element.offsetParent;
} while(element);

scrollTo(0, offsetTop);

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

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






	},

quickEditSave: function(pid)

	},

quickEditSave: function(pid)

Zeile 233Zeile 255
			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 performing the update.\n\n'+message[1]);

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

		}

		}

		else if(request.responseText)

		else if(request.responseText)

		{

		{

			$("pid_"+pid).innerHTML = 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);