Vergleich jscripts/thread.js - 1.8.20 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 120Zeile 120

multiQuotedLoaded: function(request)
{


multiQuotedLoaded: function(request)
{

		var json = $.parseJSON(request.responseText);

		var json = JSON.parse(request.responseText);

		if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

		if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

Zeile 133Zeile 133
			}
}


			}
}


		if(typeof $('textarea').sceditor != 'undefined')

		if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null)

		{

		{

			$('textarea').sceditor('instance').insert(json.message);

			MyBBEditor.insert(json.message);

		}
else
{

		}
else
{

Zeile 151Zeile 151
		$('#quickreply_multiquote').hide();
$('#quoted_ids').val('all');


		$('#quickreply_multiquote').hide();
$('#quoted_ids').val('all');


		$('#message').focus();

		$('#message').trigger('focus');

	},

clearMultiQuoted: function()

	},

clearMultiQuoted: function()

Zeile 208Zeile 208
					id = $(this).attr('id');
pid = id.replace( /[^\d.]/g, '');


					id = $(this).attr('id');
pid = id.replace( /[^\d.]/g, '');


					var json = $.parseJSON(values);

					var json = JSON.parse(values);

					if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

					if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

Zeile 311Zeile 311
		if($('#quick_reply_form').length && use_xmlhttprequest == 1)
{
// Bind closing event to our popup menu

		if($('#quick_reply_form').length && use_xmlhttprequest == 1)
{
// Bind closing event to our popup menu

			$('#quick_reply_submit').bind('click', function(e) {

			$('#quick_reply_submit').on('click', function(e) {

				return Thread.quickReply(e);
});
}

				return Thread.quickReply(e);
});
}

Zeile 355Zeile 355
	{
this.quick_replying = 0;


	{
this.quick_replying = 0;


		var json = $.parseJSON(request.responseText);

		var json = JSON.parse(request.responseText);

		if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

		if(typeof json == 'object')
{
if(json.hasOwnProperty("errors"))

Zeile 467Zeile 467
						type: 'post',
complete: function (request, status)
{

						type: 'post',
complete: function (request, status)
{

							var json = $.parseJSON(request.responseText);

							var json = JSON.parse(request.responseText);

							if(json.hasOwnProperty("errors"))
{
$.each(json.errors, function(i, message)

							if(json.hasOwnProperty("errors"))
{
$.each(json.errors, function(i, message)

Zeile 546Zeile 546
						type: 'post',
complete: function (request, status)
{

						type: 'post',
complete: function (request, status)
{

							var json = $.parseJSON(request.responseText);

							var json = JSON.parse(request.responseText);

							if(json.hasOwnProperty("errors"))
{
$.each(json.errors, function(i, message)

							if(json.hasOwnProperty("errors"))
{
$.each(json.errors, function(i, message)

Zeile 561Zeile 561
								if(json.first == 1)
{
$("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").show();

								if(json.first == 1)
{
$("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").show();

									$("#moderator_options_selector option.option_mirage").removeAttr("disabled");

									$("#moderator_options_selector option.option_mirage").prop("disabled", false);

									$("#moderator_options_selector option[value='restorethread']").val("softdeletethread").text(lang.softdelete_thread);
}


									$("#moderator_options_selector option[value='restorethread']").val("softdeletethread").text(lang.softdelete_thread);
}