CoreFiles by mySites.guru
common.min.js1 lines, 7,936 bytes, from wordpress-3.7.39.zip
Raw History Compare with 3.7.38
md5
a88278e60f358861be0165b49391a660
sha1
044c555ed547110c81ce18c798bf3876c15c60ab
sha256
9518a7a641b7706044254dc0b230204e965a440c752a7b62e56ade60395affc2
var showNotice,adminMenu,columns,validateForm,screenMeta;!function(p){adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},columns={init:function(){var n=this;p(".hide-column-tog","#adv-settings").click(function(){var e=p(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();p.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:p("#screenoptionnonce").val(),page:pagenow})},checked:function(e){p(".column-"+e).show(),this.colSpanChange(1)},unchecked:function(e){p(".column-"+e).hide(),this.colSpanChange(-1)},hidden:function(){return p(".manage-column").filter(":hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return p(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=p("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},p(document).ready(function(){columns.init()}),validateForm=function(e){return!p(e).find(".form-required").filter(function(){return""==p("input:visible",this).val()}).addClass("form-invalid").find("input:visible").change(function(){p(this).closest(".form-invalid").removeClass("form-invalid")}).size()},showNotice={warn:function(){var e=commonL10n.warnDelete||"";return!!confirm(e)},note:function(e){alert(e)}},screenMeta={element:null,toggles:null,page:null,init:function(){this.element=p("#screen-meta"),this.toggles=p(".screen-meta-toggle a"),this.page=p("#wpcontent"),this.toggles.click(this.toggleEvent)},toggleEvent:function(e){var t=p(this.href.replace(/.+#/,"#"));e.preventDefault(),t.length&&(t.is(":visible")?screenMeta.close(t,p(this)):screenMeta.open(t,p(this)))},open:function(e,t){p(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.focus(),t.addClass("screen-meta-active").attr("aria-expanded",!0)})},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),p(".screen-meta-toggle").css("visibility",""),e.parent().hide()})}},p(".contextual-help-tabs").delegate("a","click focus",function(e){var t=p(this);if(e.preventDefault(),t.is(".active a"))return!1;p(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),t=p(t.attr("href")),p(".help-tab-content").not(t).removeClass("active").hide(),t.addClass("active").show()}),p(document).ready(function(){var n,i,o,s,e,t,a,c,l,r=!1,u=p("#adminmenu"),d=p("input.current-page"),h=d.val();function f(){a.prop("disabled",""===c.map(function(){return p(this).val()}).get().join(""))}u.on("click.wp-submenu-head",".wp-submenu-head",function(e){p(e.target).parent().siblings("a").get(0).click()}),p("#collapse-menu").on("click.collapse-menu",function(e){var t,n=p(document.body);p("#adminmenu div.wp-submenu").css("margin-top",""),(t=-1<navigator.userAgent.indexOf("AppleWebKit/")?p(window).width():window.innerWidth)&&t<900?n.hasClass("auto-fold")?(n.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o")):(n.addClass("auto-fold"),setUserSetting("unfold",0)):n.hasClass("folded")?(n.removeClass("folded"),setUserSetting("mfold","o")):(n.addClass("folded"),setUserSetting("mfold","f"))}),("ontouchstart"in window||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(l=/Mobile\/.+Safari/.test(navigator.userAgent)?"touchstart":"click",p(document.body).on(l+".wp-mobile-hover",function(e){p(e.target).closest("#adminmenu").length||u.find("li.wp-has-submenu.opensub").removeClass("opensub")}),u.find("a.wp-has-submenu").on(l+".wp-mobile-hover",function(e){var t=p(this).parent();t.hasClass("opensub")||t.hasClass("wp-menu-open")&&!(t.width()<40)||(e.preventDefault(),u.find("li.opensub").removeClass("opensub"),t.addClass("opensub"))})),u.find("li.wp-has-submenu").hoverIntent({over:function(e){var t,n,i,o=p(this).find(".wp-submenu"),s=parseInt(o.css("top"),10);isNaN(s)||-5<s||(i=(t=p(this).offset().top)-(n=p(window).scrollTop())-30,t=60+(s=t+o.height()+1)-p("#wpwrap").height(),1<(t=i<(t=(n=p(window).height()+n-15)<s-t?s-n:t)?i:t)?o.css("margin-top","-"+t+"px"):o.css("margin-top",""),u.find("li.menu-top").removeClass("opensub"),p(this).addClass("opensub"))},out:function(){p(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),u.on("focus.adminmenu",".wp-submenu a",function(e){p(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){p(e.target).closest("li.menu-top").removeClass("opensub")}),p("div.wrap h2:first").nextAll("div.updated, div.error").addClass("below-h2"),p("div.updated, div.error").not(".below-h2, .inline").insertAfter(p("div.wrap h2:first")),screenMeta.init(),p("tbody").children().children(".check-column").find(":checkbox").click(function(e){if("undefined"==e.shiftKey)return!0;if(e.shiftKey){if(!r)return!0;n=p(r).closest("form").find(":checkbox"),i=n.index(r),o=n.index(this),s=p(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?n.slice(i,o):n.slice(o,i)).prop("checked",function(){return!!p(this).closest("tr").is(":visible")&&s})}var t=p(r=this).closest("tbody").find(":checkbox").filter(":visible").not(":checked");return p(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0==t.length}),!0}),p("thead, tfoot").find(".check-column :checkbox").click(function(e){var t=p(this).prop("checked"),n="undefined"!=typeof toggleWithKeyboard&&toggleWithKeyboard,i=e.shiftKey||n;p(this).closest("table").children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!p(this).is(":hidden")&&(i?p(this).prop("checked"):!!t)}),p(this).closest("table").children("thead,  tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!i&&!!t})}),p("td.post-title, td.title, td.comment, .bookmarks td.column-name, td.blogname, td.username, .dashboard-comment-wrap").focusin(function(){clearTimeout(e),(t=p(this).find(".row-actions")).addClass("visible")}).focusout(function(){e=setTimeout(function(){t.removeClass("visible")},30)}),p("#default-password-nag-no").click(function(){return setUserSetting("default_password_nag","hide"),p("div.default-password-nag").hide(),!1}),p("#newcontent").bind("keydown.wpevent_InsertTab",function(e){var t,n,i,o,s=e.target;if(27!=e.keyCode){if(!(9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey))if(p(s).data("tab-out"))p(s).data("tab-out",!1);else{t=s.selectionStart,n=s.selectionEnd,i=s.value;try{this.lastKey=9}catch(e){}document.selection?(s.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,s.value=i.substring(0,t).concat("\t",i.substring(n)),s.selectionStart=s.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}}else p(s).data("tab-out",!0)}),p("#newcontent").bind("blur.wpevent_InsertTab",function(e){this.lastKey&&9==this.lastKey&&this.focus()}),d.length&&d.closest("form").submit(function(e){-1==p('select[name="action"]').val()&&-1==p('select[name="action2"]').val()&&d.val()==h&&d.val("1")}),p('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function(){p('select[name^="action"]').val("-1")}),p("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoView&&e.target.scrollIntoView(!1)}),(l=p("form.wp-upload-form")).length&&(a=l.find('input[type="submit"]'),c=l.find('input[type="file"]'),f(),c.on("change",f))}),p(document).bind("wp_CloseOnEscape",function(e,t){if("function"==typeof t.cb)return"function"==typeof t.condition&&!t.condition()||t.cb(),!0})}(jQuery);

The same content is in 6 releases, WordPress 3.7.36 to 3.7.41. See them all, or every version of this file.