PageSourceSearch

https://w3.s-oman.net/js/inlinemod.js?v=

js s-oman.net collected 2026-10-01 14:38:27 UTC 29,026 bytes, 66 lines download raw bytes

1/*
2 =======================================================================*\
3|| ###################################################################### ||
4|| # vBulletin 5.7.5 Patch Level 3
5|| # ------------------------------------------------------------------ # ||
6|| # Copyright 2000-2026 MH Sub I, LLC dba vBulletin. All Rights Reserved.  # ||
7|| # This file may not be redistributed in whole or significant part.   # ||
8|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # ||
9|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html   # ||
10|| ###################################################################### ||
11\*========================================================================*/
12vBulletin.precache("cancel delete_posts delete_thread inline_moved inlinemod_auth inlinemod_auth_password_empty loading login manage_content manage_deleted merge_posts merge_threads_ginlinemod move_posts move_threads_ginlinemod not_much_would_be_accomplished_by_merging options please_select_at_least_one_post please_select_at_least_two_posts remove_redirects this_post_has_been_successfully_approved this_post_has_been_successfully_unapproved this_topic_has_been_stuck this_topic_has_been_successfully_approved this_topic_has_been_successfully_opened this_topic_has_been_successfully_unapproved this_topic_has_been_successfully_unstuck this_topic_is_closed this_topic_is_deleted this_topic_is_undeleted thread_redirects_removed unapproved you_did_not_select_any_valid_threads".split(" "),
13[]);
14(function(a){function w(b,d){return new Promise((e,c)=>{vBulletin.dialogtools.openTemplateConfirmDialog(vBulletin.ajaxtools,{title:"spam_management",width:500,dialogClass:"inlinemod-spam-dialog",yesPhrase:"proceed_ellipsis",noPhrase:"cancel",onClickYes:f=>{f=f.find(".spam-form");d.userids=[];f.find(":input[name='userids[]']:checked").each(function(){d.userids.push(a(this).val())});d.banusergroupid=f.find(":input[name=usergroupid]").val();d.period=f.find(":input[name=period]").val();d.banreason=f.find(":input[name=banreason]").val();
15d.report=b.find(":input[name=report]").is(":checked")?1:0;vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(f.attr("action")),cpaction:!0,data:d,title_phrase:"spam_management",error_phrase:"error_deleting_posts",success:function(g){e({response:g,postData:d})}})}},{name:"inlinemod_delete_spam",data:{nodeIds:d.nodeids,banusers:d.banusers}}).then(f=>{f.find(".spam-form").offon("submit",g=>{g.preventDefault()});a("select",f).selectBox()})})}function x(b,d,e){e||="approve";var c=p(a(b)),f=e+"_threads",g=
16"approve"==e?1:0;classes="unapproved";itemSelector=".list-item";statusPrefix="this_topic_has_been_successfully_";d&&(classes+=" b-post--unapproved",itemSelector=".js-post",statusPrefix="this_post_has_been_successfully_");if(0==c.length)q(f);else return vBulletin.AJAX({call:"/ajax/api/node/setApproved",cpaction:!0,data:{nodeids:c,approved:g},title_phrase:f,error_phrase:"error_un_approving_topics",allowEmptyResponse:!0,success:function(h){vBulletin.inlinemod.clear.apply(b);h?"thread"==m?(-1!=a.inArray(a(b).attr("data-node-id"),
17h)&&a(".canvas-widget").toggleClass("unapproved",g),a(".inlinemod-item .cb_inlinemod",k).each(function(){-1!=a.inArray(this.value,h)&&(a(this).closest(itemSelector).toggleClass(classes,g),g?a(this).prev(".js-unapprove-label").remove():a('<span class="js-unapprove-label b-post__inlinemod-text">{0}</span>'.format(vBulletin.phrase.get("unapproved"))).insertBefore(this))}),showStatusMessage(vBulletin.phrase.get(statusPrefix+(g?"approved":"unapproved")),"approve")):y(b):vBulletin.warning(f,"nothing_to_do")}}),
18!1}function y(b){(b=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof b.applyFilters&&b.forceApplyFilters()}function z(b){(b.is(".inlinemod-item")?b:b.find(".inlinemod-item")).each(function(){var d=a(this);if(d.find(".js-photo-preview").length||d.find(".js-post-attachments").length)d.addClass("im-attach");else for(var e=a(".js-post__content-text",this),c=["img","iframe.restrain"],f=0;f<c.length;f++){var g=a(c[f],e).length,h=a(".bbcode_container "+
19c[f],e).length;if(0<g&&g!=h){d.addClass("im-attach");break}}})}function q(b){vBulletin.warning(b,"please_select_at_least_one_post")}function p(b){return(b=b.attr("data-node-id"))?[b]:r()}function r(){var b=a.cookie(l),d=[];b&&(d=b.split(","));return d}vBulletin.ensureObj("inlinemod");vBulletin.inlinemod.delete_form_thread=function(){var b=this,d=p(a(b));0==d.length?q("delete_thread"):vBulletin.dialogtools.openTemplateConfirmDialog(vBulletin.ajaxtools,{title:"delete_thread",width:500,dialogClass:"no-buttons-while-loading",
20yesPhrase:"delete_thread",noPhrase:"cancel",onClickYes:function(e){var c=e.find(".delete-posts-form"),f=c.find("input:radio[name=deletetype]:checked").val()||1,g={hard:2==f?1:0,reason:c.find(":input[name=deletereason]").val(),nodeids:d,deleteother:c.find(":input[name=deleteother]").is(":checked")?1:0,report:c.find(":input[name=report]").is(":checked")?1:0,banusers:"ban"==c.find("input:radio[name=useraction]:checked").val()?1:0};g.deleteother||g.banusers||g.report?setTimeout(()=>
20{w(c,g).then(h=>{a.cookie(l,
21null,{path:pageData.cookie_path,domain:pageData.cookie_domain});"thread"==m&&2==f?location.replace(a("#breadcrumbs .crumb a:last").attr("href")):(h=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof h.applyFilters?h.forceApplyFilters():location.reload()})},500):vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(c.attr("action")),cpaction:!0,data:g,title_phrase:"delete_thread",error_phrase:"error_deleting_posts",success:function(h){a.cookie(l,null,{path:pageData.cookie_path,
22domain:pageData.cookie_domain});if("thread"==m&&2==f)-1!=a.inArray(a(b).attr("data-node-id"),h)||-1!=a.inArray(pageData.nodeid,h)?location.replace(a("#breadcrumbs .crumb a:last").attr("href")):a("input.cb_inlinemod[type=checkbox]:checked",k).each(function(){-1!=a.inArray(a(this).val(),h)&&a(this).parents(".inlinemod-item").remove()});else{-1!=a.inArray(a(b).attr("data-node-id"),h)&&a(".conversation-content-widget").addClass("deleted");var n=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance");
23n&&"function"==typeof n.applyFilters?n.forceApplyFilters():location.reload()}}})}},{name:"inlinemod_delete_form",data:{postcount:d.length,nodeids:d,deleteposts:1,removeposts:1,firstpost:1}}).then(e=>{a("select",e).selectBox()})};vBulletin.inlinemod.delete_dialog=function(b,d){vBulletin.dialogtools.openTemplateConfirmDialog(vBulletin.ajaxtools,{title:"delete_posts",width:500,dialogClass:"no-buttons-while-loading",yesPhrase:"delete_posts",noPhrase:"cancel",onClickYes:e=>{var c=e.find(".delete-posts-form"),
24f={hard:2==(c.find("input:radio[name=deletetype]:checked").val()||1)?1:0,reason:c.find(":input[name=deletereason]").val(),nodeids:b,deleteother:c.find(":input[name=deleteother]").is(":checked")?1:0,report:c.find(":input[name=report]").is(":checked")?1:0,banusers:"ban"==c.find("input:radio[name=useraction]:checked").val()?1:0};f.deleteother||f.banusers||f.report?setTimeout(()=>{w(c,f).then(g=>{vBulletin.ensureFun(d)(g.response,g.postData);vBulletin.inlinemod.clear()})},500):vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(c.attr("action")),
25cpaction:!0,data:f,title_phrase:"delete_posts",error_phrase:"error_deleting_posts",success:g=>{vBulletin.ensureFun(d)(g,f);vBulletin.inlinemod.clear()}})}},{name:"inlinemod_delete_form",data:{postcount:b.length,nodeids:b,deleteposts:1,removeposts:1,firstpost:1}}).then(e=>{a("select",e).selectBox()})};vBulletin.inlinemod.delete_form=function(){var b=a(this),d=p(b);0==d.length?q("delete_posts"):vBulletin.inlinemod.delete_dialog(d,function(e,c){if(c.nodeids&&a.isArray(c.nodeids)){var f=!1;a.each(c.nodeids,
26function(g,h){-1==a.inArray(h,e)&&(f=!0)});f&&vBulletin.warning("delete_posts","error_deleting_one_or_more_posts")}a.cookie(l,null,{path:pageData.cookie_path,domain:pageData.cookie_domain});m&&"thread"==m&&1==c.hard?!b||-1==a.inArray(b.attr("data-node-id"),e)&&-1==a.inArray(pageData.nodeid,e)?a("input.cb_inlinemod[type=checkbox]:checked",k).each(function(){-1!=a.inArray(a(this).val(),e)&&a(this).closest(".inlinemod-item").remove()}):location.replace(a("#breadcrumbs .crumb a:last").attr("href")):(c=
27a(".filter-wrapper",b.parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof c.applyFilters?c.forceApplyFilters():location.reload()})};vBulletin.inlinemod.moveThreads=function(){var b=p(a(this));movephrase="move_threads_ginlinemod";movephraserendered=vBulletin.phrase.get(movephrase);if(0==b.length)q(movephrase);else{var d=openConfirmDialog({title:movephraserendered,message:vBulletin.phrase.get("loading")+"...",width:500,dialogClass:"inlinemod-move-dialog loading",buttonLabel:{yesLabel:movephraserendered,
28noLabel:vBulletin.phrase.get("cancel")},onClickYes:function(){var e=d.find(".move-posts-form"),c={};e.find("input[name=enableredirect]").prop("checked")&&(c.redirect=e.find("#rb_redirect_perm").prop("checked")?"perm":"expires","expires"==c.redirect&&(c.period=e.find("select[name=period]").val(),c.frame=e.find("select[name=frame]").val()),console.log("Redirect data compiled:"),console.dir(c));c={to_parent:e.find("select[name=destchannelid]").val(),nodeids:b,leaveRedirectData:c};vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(e.attr("action")),
29cpaction:!0,data:c,type:e.attr("method"),title_phrase:"move_threads_ginlinemod",error_phrase:"error_moving_threads",success:function(f){a.cookie(l,null,{path:pageData.cookie_path,domain:pageData.cookie_domain});vBulletin.alert(movephrase,"inline_moved","",function(){location.reload()})}})}});vBulletin.AJAX({call:"/ajax/render/inlinemod_move_form",data:{postcount:b.length,moveposts:1,removeposts:1,firstpost:1,isAjaxTemplateRenderWithData:1},title_phrase:"move_threads_ginlinemod",error_phrase:"error_loading_move_form",
30success:function(e){var c=a(".dialog-content .message",d);c.html(e.template);c.trigger("vb-instrument");d.dialog("option","position",{of:window});a("select",d).selectBox()}})}};vBulletin.inlinemod.movePosts=function(){var b=this,d=p(a(b));if(0==d.length)q("move_posts");else{var e=openConfirmDialog({title:vBulletin.phrase.get("move_posts"),message:vBulletin.phrase.get("loading")+"...",width:500,dialogClass:"inlinemod-moveposts-dialog loading",buttonLabel:{yesLabel:vBulletin.phrase.get("move_posts"),
31noLabel:vBulletin.phrase.get("cancel")},onClickYes:function(){var c=e.find(".move-posts-form"),f=c.find("input:radio[name=type]:checked").val()||0;c={newtitle:c.find(':input[name="title"]').val(),to_parent:0==f?c.find(':input[name="destchannelid"]').val():c.find(':input[name="mergethreadurl"]').val().replace(pageData.baseurl+"/",""),nodeids:d,makeTopic:!0};vBulletin.AJAX({call:"/ajax/api/node/moveNodes",cpaction:!0,data:c,title_phrase:"move_posts",error_phrase:"error_moving_posts",success:function(g){a.cookie(l,
32null,{path:pageData.cookie_path,domain:pageData.cookie_domain});if("thread"==m)-1!=a.inArray(a(b).attr("data-node-id"),g)||-1!=a.inArray(pageData.nodeid,g)?location.replace(a("#breadcrumbs .crumb a:last").attr("href")):a("input.cb_inlinemod[type=checkbox]:checked",k).each(function(){-1!=a.inArray(a(this).val(),g)&&a(this).parents(".inlinemod-item").remove()});else{var h=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance");h&&"function"==typeof h.applyFilters&&h.forceApplyFilters()}vBulletin.AJAX({call:"/ajax/api/route/getNodeUrl",
33data:{nodeid:g[0]},success:function(n){location.href=pageData.baseurl+n}})}})}});vBulletin.AJAX({call:"/ajax/render/inlinemod_movePosts",data:{postcount:d.length,deleteposts:1,removeposts:1,firstpost:1},title_phrase:"move_posts",error_phrase:"error_loading_move_form",success:function(c){a(".inlinemod-moveposts-dialog").removeClass("loading");a(".dialog-content .message",e).html(c);e.dialog("option","position",{of:window});a("select",e).selectBox()}})}};vBulletin.inlinemod.stickThreads=function(b){var d=
34this,e=p(a(d));b||="stick";if(0==e.length)q(b+"_threads");else return vBulletin.AJAX({call:"/ajax/api/node/setSticky",cpaction:!0,data:{nodeids:e,stick:"stick"==b?1:0},title_phrase:b+"_threads",error_phrase:"error_sticking_topics",success:function(c){vBulletin.inlinemod.clear.apply(d);"thread"==m?("stick"==b?(a(".canvas-widget").addClass("sticky"),c=vBulletin.phrase.get("this_topic_has_been_stuck")):(a(".canvas-widget").removeClass("sticky"),c=vBulletin.phrase.get("this_topic_has_been_successfully_unstuck")),
35showStatusMessage(c,"stick")):(c=a(".filter-wrapper",a(d).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof c.applyFilters&&("topic"==m&&c.updatePageNumber(1),c.forceApplyFilters())}}),!1};vBulletin.inlinemod.unstickThreads=function(){return vBulletin.inlinemod.stickThreads.apply(this,["unstick"])};vBulletin.inlinemod.openCloseThreads=function(b){var d=this,e=p(a(d));b||="open";if(0==e.length)return q(b+"_threads"),!1;vBulletin.AJAX({call:"/ajax/api/node/"+b+"Node",cpaction:!0,
36data:{nodeid:e},title_phrase:b+"_threads",error_phrase:"error_open_close_topic",success:function(c){vBulletin.inlinemod.clear.apply(d);"thread"==m?(c=a(".canvas-widget"),"open"==b?(c.removeClass("showclosed"),"0"==a(".canvas-widget #canmoderate").val()&&c.removeClass("closed_content-entry-box"),c=vBulletin.phrase.get("this_topic_has_been_successfully_opened")):(c.addClass("showclosed"),"0"==a(".canvas-widget #canmoderate").val()&&c.addClass("closed_content-entry-box"),c=vBulletin.phrase.get("this_topic_is_closed")),
37showStatusMessage(c,"close")):(c=a(".filter-wrapper",a(d).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof c.applyFilters&&c.forceApplyFilters()}});return!1};vBulletin.inlinemod.approvePosts=function(b){return x(this,!0,b)};vBulletin.inlinemod.approveThreads=function(b){return x(this,!1,b)};vBulletin.inlinemod.changeAnswer=function(b){var d=a(this),e=p(d),c=d.data("starter")||0,f="set"==b,g=b+"asanswer",h="setAsAnswer",n={};b||="approve";if("remove"!=b){if(0==e.length||
381<e.length||e[0]==c){vBulletin.warning(g,"setasanswer_onlyone");return}n={nodeid:e[0],set:f?1:0}}else h="removeAnswers",n={nodeids:e};vBulletin.AJAX({call:"/ajax/api/node/"+h,cpaction:!0,data:n,title_phrase:g,error_phrase:"error_setasanswer",success:function(t){vBulletin.inlinemod.clear.apply(d[0]);if(t)if(showStatusMessage(vBulletin.phrase.get(f?"setasanswer_success":"unsetasanswer_success"),"setasanswer"),"thread"==m)if("remove"==b){let u=a(".js-post.pinned-answer");u.hide("slow",()=>{u.remove()});
39a(".js-post.isanswer").toggleClass("isanswer",!1)}else e.forEach(u=>{a('li.js-post[data-node-id="'+u+'"]').toggleClass("isanswer",f)});else y(d[0]);else vBulletin.warning(g,"nothing_to_do")}});return!1};vBulletin.inlinemod.unfeatureThreads=function(){vBulletin.inlinemod.featureThreads.apply(this,["unfeature"])};vBulletin.inlinemod.featureThreads=function(b){var d=this,e=p(a(d));b||="feature";if(0==e.length)q(b+"_threads");else return vBulletin.AJAX({call:"/ajax/api/node/setFeatured",cpaction:!0,data:{nodeids:e,
40set:"feature"==b?1:0},title_phrase:b+"_threads",error_phrase:"error_featuring_topics",success:function(c){vBulletin.inlinemod.clear.apply(d);if("thread"==m){if("feature"==b){-1!=a.inArray(a(d).attr("data-node-id"),c)&&a(".canvas-widget").addClass("featured");a(".inlinemod-item .cb_inlinemod",k).each(function(){-1!=a.inArray(this.value,c)&&a(this).closest(".list-item").removeClass("unfeatured")});var f=vBulletin.phrase.get("this_topic_has_been_featured")}else-1!=a.inArray(a(d).attr("data-node-id"),
41c)&&a(".canvas-widget").removeClass("featured"),a(".inlinemod-item .cb_inlinemod",k).each(function(){-1!=a.inArray(this.value,c)&&a(this).closest(".list-item").addClass("unfeatured")}),f=vBulletin.phrase.get("this_topic_has_been_unfeatured");showStatusMessage(f,"feature")}else(f=a(".filter-wrapper",a(d).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof f.applyFilters&&f.forceApplyFilters()}}),!1};vBulletin.inlinemod.undelete=function(){var b=this,d=p(a(b));if(0==d.length)q("undelete_threads");
42else return vBulletin.AJAX({call:"/ajax/api/node/undeleteNodes",cpaction:!0,data:{nodeids:d},title_phrase:"undelete_threads",error_phrase:"error_undeleting_topics",success:function(e){vBulletin.inlinemod.clear.apply(b);if("thread"==m){-1!=a.inArray(a(b).attr("data-node-id"),e)&&a(".conversation-content-widget").removeClass("deleted");a(".inlinemod-item .cb_inlinemod",k).each(function(){-1!=a.inArray(this.value,e)&&a(this).closest(".
42js-post").removeClass("deleted b-post--deleted")});var c=vBulletin.phrase.get("this_topic_is_undeleted");
43showStatusMessage(c,"delete")}else(c=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof c.applyFilters&&c.forceApplyFilters()}}),!1};vBulletin.inlinemod.unapprovePosts=function(){return vBulletin.inlinemod.approvePosts.apply(this,["unapprove"])};vBulletin.inlinemod.unapproveThreads=function(){return vBulletin.inlinemod.approveThreads.apply(this,["unapprove"])};vBulletin.inlinemod.viewSelectedPosts=function(){0<r().length?window.location=pageData.baseurl+
44"/search?cookie="+l:vBulletin.error("inline_mod","nothing_to_view")};vBulletin.inlinemod.mergePosts=function(){var b=this,d=p(a(b));if(2>d.length)vBulletin.warning("merge_posts","please_select_at_least_two_posts");else{var e=openConfirmDialog({title:vBulletin.phrase.get("merge_posts"),message:vBulletin.phrase.get("loading")+"...",width:600,dialogClass:"inlinemod-mergeposts-dialog loading",buttonLabel:{yesLabel:vBulletin.phrase.get("merge_posts"),noLabel:vBulletin.phrase.get("cancel")},onClickYes:function(){var c=
45e.find("#hiddenVar_mergePosts").closest("form");c.find("[name=securitytoken]").remove();var f=c.serializeArray();f.push({name:"destnodeid",value:e.find(':input[name="destnodeid"]').val()});f.push({name:"destauthorid",value:e.find(':input[name="destauthorid"]').val()});f.push({name:"contenttype",value:c.attr("data-content-type")});vBulletin.AJAX({call:"/ajax/api/node/mergePosts",cpaction:!0,data:{input:f},title_phrase:"merge_posts",error_phrase:"error_merging_posts",success:function(g){a.cookie(l,
46null,{path:pageData.cookie_path,domain:pageData.cookie_domain});(g=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof g.applyFilters?g.forceApplyFilters():location.reload()}})}});vBulletin.AJAX({call:"/ajax/render/inlinemod_mergePosts",data:{posts:d.join(","),postcount:d.length},title_phrase:"merge_posts",error_phrase:"error_loading_merge_form",success:function(c){a(".inlinemod-mergeposts-dialog").removeClass("loading");a(".dialog-content .message",
47e).html(c);e.dialog("option","position",{of:window});a("select",e).selectBox();vBulletin.contentEntryBox.init();c=a(".js-content-entry form",e).data("content-type");a("body").trigger(c+"_editform_onload",[e,function(){}])}})}};vBulletin.inlinemod.copyPosts=function(){var b=this,d=p(a(b));if(0==d.length)q("copy_posts");else{var e=openConfirmDialog({title:vBulletin.phrase.get("copy_posts"),message:vBulletin.phrase.get("loading")+"...",width:500,dialogClass:"inlinemod-copyposts-dialog loading",buttonLabel:{yesLabel:vBulletin.phrase.get("copy_posts"),
48noLabel:vBulletin.phrase.get("cancel")},onClickYes:function(){var c=e.find(".copy-posts-form"),f=c.find("input:radio[name=type]:checked").val()||0;f={newtitle:c.find(':input[name="title"]').val(),to_parent:0==f?c.find(':input[name="destchannelid"]').val():c.find(':input[name="mergethreadurl"]').val().replace(pageData.baseurl+"/",""),nodeids:d};vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(c.attr("action")),cpaction:!0,data:f,type:c.attr("method"),title_phrase:"copy_posts",error_phrase:"error_copying_posts",
49success:function(g){a.cookie(l,null,{path:pageData.cookie_path,domain:pageData.cookie_domain});if("thread"==m){if(a.isPlainObject(g)){var h=0;a.each(g,function(n,t){if(a(".js-post[data-node-id={0}]".format(n)).hasClass("js-conversation-starter"))return h=t,!1});h||a.each(g,function(n,t){h=t;return!1});vBulletin.AJAX({call:"/ajax/api/route/getNodeUrl",data:{nodeid:h},success:function(n){location.href=pageData.baseurl+n}})}}else(g=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance"))&&
50"function"==typeof g.applyFilters?g.forceApplyFilters():location.reload()}})}});vBulletin.AJAX({call:"/ajax/render/inlinemod_copyPosts",data:{postcount:d.length,deleteposts:1,removeposts:1,firstpost:1},title_phrase:"copy_posts",error_phrase:"error_loading_copy_posts_form",success:function(c){a(".inlinemod-copyposts-dialog").removeClass("loading");a(".dialog-content .message",e).html(c);e.dialog("option","position",{of:window});a("select",e).selectBox()}})}};vBulletin.inlinemod.mergeThreads=function(){var b=
51this,d=r();if(2>d.length)vBulletin.warning("merge_threads_ginlinemod",1==d.length?"not_much_would_be_accomplished_by_merging":"you_did_not_select_any_valid_threads");else{var e=openConfirmDialog({title:vBulletin.phrase.get("merge_threads_ginlinemod"),message:vBulletin.phrase.get("loading")+"...",width:500,dialogClass:"inlinemod-merge-dialog loading",buttonLabel:{yesLabel:vBulletin.phrase.get("merge_threads_ginlinemod"),noLabel:vBulletin.phrase.get("
51cancel")},onClickYes:function(){var c=e.find(".merge-threads-form"),
52f={};c.find("input[name=enableredirect]").prop("checked")&&(f.redirect=c.find("#rb_redirect_perm").prop("checked")?"perm":"expires","expires"==f.redirect&&(f.period=c.find("select[name=period]").val(),f.frame=c.find("select[name=frame]").val()),console.log("Redirect data compiled:"),console.dir(f));f={targetnodeid:c.find('select[name="targetnodeid"]').val(),nodeids:d,leaveRedirectData:f};vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(c.attr("action")),cpaction:!0,data:f,type:c.attr("method"),title_phrase:"merge_threads_ginlinemod",
53error_phrase:"error_merging_threads",success:function(g){a.cookie(l,null,{path:pageData.cookie_path,domain:pageData.cookie_domain});(g=a(".filter-wrapper",a(b).parents(".conversation-toolbar")).data("object-instance"))&&"function"==typeof g.applyFilters?g.forceApplyFilters():location.reload()}})}});vBulletin.AJAX({call:"/ajax/render/inlinemod_mergeThreads",data:{postcount:d.length,nodeids:d},success:function(c){a(".inlinemod-merge-dialog").removeClass("loading");a(".dialog-content .message",e).html(c);
54e.dialog("option","position",{of:window});a("select",e).selectBox()}})}};vBulletin.inlinemod.manage_deleted_form=function(b){function d(){var g=a(".manage-deleted-form"),h=a(".manage-deleted-form input:radio[name=deletetype]:checked").val();h&&(a("input:checkbox[name=keep_attachments]",g).prop("disabled",1!=h),a("input:checkbox[name=topicopen]",g).prop("disabled",2!=h),a("input:checkbox[name=topicsticky]",g).prop("disabled",2!=h),a("input:checkbox[name=topicvisible]",g).prop("disabled",2!=h));g.find("select.prefixid").selectBox()}
55var e=a(this),c=b?b:e.parents(".js-post").attr("data-node-id"),f=openConfirmDialog({title:b?vBulletin.phrase.get("manage_content"):vBulletin.phrase.get("manage_deleted"),message:vBulletin.phrase.get("loading")+"...",width:510,dialogClass:"inlinemod-delete-dialog loading",buttonLabel:{yesLabel:vBulletin.phrase.get("save"),noLabel:vBulletin.phrase.get("cancel")},onClickYes:function(){var g=f.find(".manage-deleted-form");vBulletin.AJAX({url:vBulletin.normalizeAjaxUrl(g.attr("action")),cpaction:!0,data:{nodeid:c,
56params:{deletetype:g.find("input:radio[name=deletetype]:checked").val()||0,reason:g.find(":input[name=deletereason]").val(),prefixid:g.find("select[name=prefixid]").val()||0,topictitle:g.find("input:text[name=topic_title]").val()||"",moderator_notes:g.find("textarea[name=moderator_notes]").val()||"",post_icon:g.find("input:radio[name=iconid]:checked").val()||0,keep_attachments:g.find("input:checkbox[name=keep_attachments]:checked").val()?1:0,option_open:g.find("input:checkbox[name=topicopen]:checked").val()?
571:0,option_sticky:g.find("input:checkbox[name=topicsticky]:checked").val()?1:0,option_visible:g.find("input:checkbox[name=topicvisible]:checked").val()?1:0}},success:function(h){a.cookie(l,null,{path:pageData.cookie_path,domain:pageData.cookie_domain});(h=a(".conversation-toolbar .filter-wrapper",a(e).parents(".inlinemod-container")).data("object-instance"))&&"function"==typeof h.applyFilters?h.forceApplyFilters():location.reload()},title_phrase:"error",error_phrase:"error_moderating_post"})}});vBulletin.AJAX({call:"/ajax/render/inlinemod_manage_deleted",
58data:{nodeid:c,isblogcomment:1==e.parents(".js-comments--blog").length?1:0,isarticlecomment:1==e.parents(".js-comments--article").length?1:0,isAjaxTemplateRenderWithData:1},success:function(g){a(".inlinemod-delete-dialog").removeClass("loading");a(".dialog-content .message",f).html(g.template);f.dialog("option","position",{of:window});a(document).off("click",".manage-deleted-form input:radio[name=deletetype]").on("click",".manage-deleted-form input:radio[name=deletetype]",d);d()}})};vBulletin.inlinemod.editTopic=
59function(){var b=a(this).attr("data-node-id");vBulletin.inlinemod.manage_deleted_form(b)};vBulletin.inlinemod.removeRedirect=function(){var b=a(this).attr("data-node-id");vBulletin.AJAX({call:"/ajax/api/content_redirect/removeRedirectsFromNode",data:{nodeid:b},success:function(d){vBulletin.alert("remove_redirects","thread_redirects_removed")}})};vBulletin.inlinemod.selectAll=function(){A(a(this),!0,"")};vBulletin.inlinemod.selectNone=function(){vBulletin.inlinemod.clear.apply(this)};vBulletin.inlinemod.selectClass=
60function(b){A(a(this),!0,"."+b)};vBulletin.inlinemod.invertSelection=function(){a(".inlinemod-item .cb_inlinemod",a(this).parents(".inlinemod-container")).each(function(){var b=a(this);b.prop("checked",!b.prop("checked"));v(b)})};vBulletin.inlinemod.clear=function(){var b=a(this).parents(".inlinemod-container");a(".inlinemod-item .cb_inlinemod:checked",b).each(function(){a(this).prop("checked",!1).closest(".inlinemod-item").removeClass("inlinemod_highlight")});a(".cb_inlinemod_main",b).prop("checked",
61!1);a.cookie(l,null,{path:pageData.cookie_path,domain:pageData.cookie_domain})};var A=function(b,d,e){a(".inlinemod-item"+e+" .cb_inlinemod",b.parents(".inlinemod-container")).each(function(){var c=a(this);c.prop("checked",d);v(c)})},v=function(b){var d=b.val(),e=r();if(b.prop("checked"))b.closest(".inlinemod-item").addClass("inlinemod_highlight"),-1==a.inArray(d,e)&&e.push(d),d=a(".inlinemod-item .cb_inlinemod",k),d.length==d.filter(":checked").length&&a(".cb_inlinemod_main",k).prop("checked",!0);
62else{b.closest(".inlinemod-item").removeClass("inlinemod_highlight");b=[];for(var c=0;c<e.length;c++)e[c]!=d&&b.push(e[c]);e=b;a(".cb_inlinemod_main",k).prop("checked",!1)}cookie_str=e.join(",");a.cookie(l,cookie_str,{path:pageData.cookie_path,domain:pageData.cookie_domain})};vBulletin.inlinemod.markRead=function(){var b=a(this).closest(".channel-content-widget").attr("data-node-id");vBulletin.markchannelsread(b,{success:function(){location.reload()}})};vBulletin.inlinemod.init=function(b){b=b instanceof
63a?b:a(b);0==b.length&&(b=a("body"));k=b.hasClass("inlinemod-container")?b:a(".inlinemod-container",b);m=a(".moderationmenu_container",k).attr("data-view");l=pageData.cookie_prefix+pageData.inlinemod_cookie_name+"_"+m;var d=r();if(0<d.length){var e=0;b=a(".inlinemod-item .cb_inlinemod",k).each(function(){-1!=a.inArray(this.value,d)&&(e++,a(this).prop("checked",!0),a(this).closest(".inlinemod-item").addClass("inlinemod_highlight"))});a(".cb_inlinemod_main",k).prop("checked",0<e&&e==b.length)}z(k);a(document).on("vb-loadnewposts",
64function(c,f){z(f.insertedHtml)})};var l,m,k;a(document).ready(function(){k=a(".inlinemod-container");l||(k.is(":visible")?vBulletin.inlinemod.init(k):l=pageData.cookie_prefix+pageData.inlinemod_cookie_name);
64a(".inlinemod-container .cb_inlinemod_main").off("click mouseover").on("click",function(){vBulletin.inlinemod[this.checked?"selectAll":"selectNone"].apply(this)}).on("mouseover",function(){this.title=this.checked?a(this).attr("data-title-unselect"):a(this).attr("data-title-select")});a(".inlinemod-container").off("click",
65".inlinemod-item input.cb_inlinemod").on("click",".inlinemod-item input.cb_inlinemod",function(b){v(a(this))});a(".moderationmenu_container .moderation-action a[data-action], .js-markread").off("click").on("click",function(b){b.stopPropagation();a(this).closest(".js-comp-menu-dropdown").removeClass("b-comp-menu-dropdown--open");var d=a(this).attr("data-action");if(!d)return console.warn("Unable to find the inline moderation function name."),!1;b=vBulletin.inlinemod[d];"function"==typeof b?(d=(d=a(this).attr("data-params"))?
66d.split(","):[],b.apply(this,d)):console.warn('Unable to find the inline moderation function "{0}". Please ensure that it is defined in inlinemod.js.'.format("vBulletin.inlinemod."+d));return!1});a(".conversation-content-widget").off("click",".conversation-status-message .close").on("click",".conversation-status-message .close",function(){a(this).parent().fadeOut("slow")});return!1})})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.