Vergleich jscripts/thread.js - 1.8.24 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
			Thread.initQuickReply();
Thread.initMultiQuote();


			Thread.initQuickReply();
Thread.initMultiQuote();


 
			if(thread_deleted == "1")
{
$("#quick_reply_form, .new_reply_button, .thread_tools, .inline_rating").hide();
$("#moderator_options_selector option.option_mirage").attr("disabled","disabled");
}

visible_replies = parseInt(visible_replies, 10);
Thread.splitToolHandler();

if($("#moderator_options_selector").length !== 0) {
$("#moderator_options_selector").on('change', function() {
$("#moderator_options").trigger('submit');
});

$("#moderator_options").on('submit', function(){
if($("#moderator_options_selector").val() == "") {
$.jGrowl(lang.select_tool, {theme:'jgrowl_error'});
return false;
}
});
}


			// Set spinner image
$('#quickreply_spinner img').attr('src', spinner_image);
});

			// Set spinner image
$('#quickreply_spinner img').attr('src', spinner_image);
});

Zeile 191Zeile 213
				rows: 12,
submit: lang.save_changes,
cancel: lang.cancel_edit,

				rows: 12,
submit: lang.save_changes,
cancel: lang.cancel_edit,

 
				placeholder: "",

				event: "edit" + pid, // Triggered by the event "edit_[pid]",
onblur: "ignore",
dataType: "json",

				event: "edit" + pid, // Triggered by the event "edit_[pid]",
onblur: "ignore",
dataType: "json",

Zeile 410Zeile 433

$('#posts').append(json.data);



$('#posts').append(json.data);


 
			++visible_replies;
Thread.splitToolHandler();


			if (typeof inlineModeration != "undefined") // Guests don't have this object defined
$("#inlinemod_" + pid).on('change', inlineModeration.checkItem);


			if (typeof inlineModeration != "undefined") // Guests don't have this object defined
$("#inlinemod_" + pid).on('change', inlineModeration.checkItem);


Zeile 437Zeile 463
		}

$(".jGrowl").jGrowl("close");

		}

$(".jGrowl").jGrowl("close");

	},

	},


showIgnoredPost: function(pid)
{


showIgnoredPost: function(pid)
{

Zeile 487Zeile 513
										$("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").hide();
$("#moderator_options_selector option.option_mirage").attr("disabled","disabled");
$("#moderator_options_selector option[value='softdeletethread']").val("restorethread").text(lang.restore_thread);

										$("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").hide();
$("#moderator_options_selector option.option_mirage").attr("disabled","disabled");
$("#moderator_options_selector option[value='softdeletethread']").val("restorethread").text(lang.restore_thread);

 
										thread_deleted = "1";

									}

									}


$.jGrowl(lang.quick_delete_success, {theme:'jgrowl_success'});
}

									$.jGrowl(lang.quick_delete_success, {theme:'jgrowl_success'});
}


								else if(json.data == 2)
{
// Actually deleted
$('#post_'+pid).slideToggle("slow");


								else if(json.data == 2)
{
// Actually deleted
$('#post_'+pid).slideToggle("slow");


 
									--visible_replies;
Thread.splitToolHandler();

									$.jGrowl(lang.quick_delete_success, {theme:'jgrowl_success'});

									$.jGrowl(lang.quick_delete_success, {theme:'jgrowl_success'});

								} else if(json.data == 3)


								}
else if(json.data == 3)

								{
// deleted thread --> redirect


								{
// deleted thread --> redirect


Zeile 563Zeile 592
									$("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").show();
$("#moderator_options_selector option.option_mirage").prop("disabled", false);
$("#moderator_options_selector option[value='restorethread']").val("softdeletethread").text(lang.softdelete_thread);

									$("#quick_reply_form, .thread_tools, .new_reply_button, .inline_rating").show();
$("#moderator_options_selector option.option_mirage").prop("disabled", false);
$("#moderator_options_selector option[value='restorethread']").val("softdeletethread").text(lang.softdelete_thread);

 
									thread_deleted = "";

								}

$.jGrowl(lang.quick_restore_success, {theme:'jgrowl_success'});

								}

$.jGrowl(lang.quick_restore_success, {theme:'jgrowl_success'});

Zeile 583Zeile 613
	viewNotes: function(tid)
{
MyBB.popupWindow("/moderation.php?action=viewthreadnotes&tid="+tid+"&modal=1");

	viewNotes: function(tid)
{
MyBB.popupWindow("/moderation.php?action=viewthreadnotes&tid="+tid+"&modal=1");

 
	},

splitToolHandler: function()
{
if($(thread_deleted !== "1" && "#moderator_options_selector").length !== 0){
var splitTool = $("#moderator_options_selector").find("option[value=split]");
if(visible_replies > 0) {
splitTool.prop("disabled", false);
} else {
splitTool.attr("disabled","disabled");
}
}

	}
};


	}
};