Zeile 6 | Zeile 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 15 | Zeile 37 |
---|
{ var quoted = Cookie.get('multiquote'); if(quoted)
|
{ var quoted = Cookie.get('multiquote'); if(quoted)
|
{
| {
|
var post_ids = quoted.split("|");
$.each(post_ids, function(key, value) {
| var post_ids = quoted.split("|");
$.each(post_ids, function(key, value) {
|
Zeile 23 | Zeile 45 |
---|
if(mquote_a.length) { mquote_a.removeClass('postbit_multiquote').addClass('postbit_multiquote_on');
|
if(mquote_a.length) { mquote_a.removeClass('postbit_multiquote').addClass('postbit_multiquote_on');
|
} });
| } });
|
var mquote_quick = $('#quickreply_multiquote'); if(mquote_quick.length)
| var mquote_quick = $('#quickreply_multiquote'); if(mquote_quick.length)
|
Zeile 42 | Zeile 64 |
---|
var is_new = true; var deleted = false; if($("#pid" + pid).next("div.post").hasClass('deleted_post'))
|
var is_new = true; var deleted = false; if($("#pid" + pid).next("div.post").hasClass('deleted_post'))
|
{
| {
|
$.jGrowl(lang.post_deleted_error, {theme:'jgrowl_error'}); deleted = true; }
| $.jGrowl(lang.post_deleted_error, {theme:'jgrowl_error'}); deleted = true; }
|
Zeile 78 | Zeile 100 |
---|
if(mquote_quick.length) { if(new_post_ids.length)
|
if(mquote_quick.length) { if(new_post_ids.length)
|
{
| {
|
mquote_quick.show();
|
mquote_quick.show();
|
}
| }
|
else { mquote_quick.hide(); } } Cookie.set("multiquote", new_post_ids.join("|"));
|
else { mquote_quick.hide(); } } Cookie.set("multiquote", new_post_ids.join("|"));
|
},
| },
|
loadMultiQuoted: function() {
| loadMultiQuoted: function() {
|
Zeile 96 | Zeile 118 |
---|
// Spinner! var mquote_spinner = $('#quickreply_spinner'); mquote_spinner.show();
|
// Spinner! var mquote_spinner = $('#quickreply_spinner'); mquote_spinner.show();
|
|
|
$.ajax( { url: 'xmlhttp.php?action=get_multiquoted&load_all=1',
| $.ajax( { url: 'xmlhttp.php?action=get_multiquoted&load_all=1',
|
Zeile 130 | Zeile 152 |
---|
$.jGrowl(lang.post_fetch_error + ' ' + message, {theme:'jgrowl_error'}); }); return false;
|
$.jGrowl(lang.post_fetch_error + ' ' + message, {theme:'jgrowl_error'}); }); return false;
|
} }
| } }
|
if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null) { MyBBEditor.insert(json.message);
| if(typeof MyBBEditor !== 'undefined' && MyBBEditor !== null) { MyBBEditor.insert(json.message);
|
Zeile 150 | Zeile 172 |
---|
Thread.clearMultiQuoted(); $('#quickreply_multiquote').hide(); $('#quoted_ids').val('all');
|
Thread.clearMultiQuoted(); $('#quickreply_multiquote').hide(); $('#quoted_ids').val('all');
|
|
|
$('#message').trigger('focus'); },
| $('#message').trigger('focus'); },
|
Zeile 411 | Zeile 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 438 | Zeile 463 |
---|
}
$(".jGrowl").jGrowl("close");
|
}
$(".jGrowl").jGrowl("close");
|
},
| },
|
showIgnoredPost: function(pid) {
| showIgnoredPost: function(pid) {
|
Zeile 488 | Zeile 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 564 | Zeile 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 584 | Zeile 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"); } }
|
} };
| } };
|