PluginProbe
Stream – Activity Log & Audit Trail / 4.2.1
Stream – Activity Log & Audit Trail v4.2.1
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
stream / build / settings.js

settings.js in Stream – Activity Log & Audit Trail 4.2.1, at build/settings.js

1 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var a in t)e.o(t,a)&&!e.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:t[a]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)};const n=window.jQuery;var t=e.n(n);let a;a="wp_stream_network"===t()('input[name="option_page"]').val()?"_network_affix":"";const i=t()("#wp_stream"+a+"\\[general_keep_records_indefinitely\\]"),o=t()("#wp_stream"+a+"_general_records_ttl"),r=o.closest("tr");function s(){i.is(":checked")?(r.addClass("hidden"),o.addClass("hidden")):(r.removeClass("hidden"),o.removeClass("hidden"))}i.on("change",function(){s()}),s(),t()("#wp_stream_general_reset_site_settings").click(function(e){confirm(window["wp-stream-settings"].i18n.confirm_defaults)||e.preventDefault()});const c=t()(".nav-tab-wrapper"),l=t()(".nav-tab-content table.form-table"),d=c.find(".nav-tab-active"),h=d.length>0?c.find("a").index(d):0,f=window.location.hash.match(/^#(\d+)$/),p=null!==f?f[1]:h;c.on("click","a",function(){const e=c.find("a").index(t()(this)),n=window.location.hash.match(/^#(\d+)$/);return l.hide().eq(e).show(),c.find("a").removeClass("nav-tab-active").filter(t()(this)).addClass("nav-tab-active"),""!==window.location.hash&&null===n||(window.location.hash=e),function(e){const n=t()('input[name="option_page"][value^="wp_stream"]').closest("form");if(0===n.length)return;const a=n.attr("action");n.prop("action",a.replace(/(^[^#]*).*$/,"$1#"+e))}(e),!1}),c.children().eq(p).trigger("click")})();