PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | _inc/build/jetpack-modules.views.min.js +1 -1 13.0.2 → 16.3-a.5 View file →
@@ -1 +1 @@
1 -window.jetpackModules=window.jetpackModules||{},window.jetpackModules.views=function(t,e,a,o,n){"use strict";var i={};return i.List_Table=o.View.extend({template:n.template("Jetpack_Modules_List_Table_Template"),updateUrl:function(){if(t.history.replaceState){var a=t.location.href.split("?")[0]+"?page=jetpack_modules",o=e(".subsubsub .current"),n=e(".button-group.filter-active .active"),i=e(".button-group.sort .active"),s=e("#srch-term-search-input").val();s.length&&(a+="&s="+encodeURIComponent(s)),o.hasClass("all")||(a+="&module_tag="+encodeURIComponent(o.find("a").data("title"))),n.data("filter-by")&&(a+="&"+encodeURIComponent(n.data("filter-by"))+"="+encodeURIComponent(n.data("filter-value"))),"name"!==i.data("sort-by")&&(a+="&sort_by="+encodeURIComponent(i.data("sort-by"))),t.history.replaceState({},"",a)}},render:function(){return this.model.filter_and_sort(),this.$el.html(this.template(this.model.attributes)),this.updateUrl(),this},initialize:function(){this.listenTo(this.model,"change",this.render)}}),i}(window,jQuery,_,Backbone,wp);
1 +window.jetpackModules=window.jetpackModules||{},window.jetpackModules.views=function(t,e,a,i){"use strict";var l={};return l.List_Table=a.View.extend({template:i.template("Jetpack_Modules_List_Table_Template"),updateUrl:function(){if(t.history.replaceState){var a=t.location.href.split("?")[0]+"?page=jetpack_modules",i=e(".subsubsub .current"),l=e(".purpose-filter .current"),o=e(".button-group.availability-filter .active"),n=e("#srch-term-search-input").val();n.length&&(a+="&s="+encodeURIComponent(n)),"all"===o.data("availability")&&(a+="&offline_available=all"),i.hasClass("all")||(a+="&module_tag="+encodeURIComponent(i.find("a").data("title"))),l.length&&!l.hasClass("all")&&(a+="&product_group="+encodeURIComponent(l.find("a").data("group"))),e(".button-group.module-filter .active").each(function(){var t=e(this).data("filter-by"),i=e(this).data("filter-value");t&&(a+="&"+encodeURIComponent(t)+"="+encodeURIComponent(i))}),t.history.replaceState({},"",a)}},updateFacetCounts:function(t,a,i){e(t+" > li").each(function(){var t=e(this),l=t.hasClass("all"),o=t.children("a").data(i),n=l?a.__all__:a[o]||0;t.find(".count").text("("+n+")"),l||t.toggleClass("is-empty",0===n)})},updateCounts:function(){this.updateFacetCounts(".subsubsub",this.model.tag_counts(),"title"),this.updateFacetCounts(".purpose-filter",this.model.purpose_counts(),"group")},render:function(){return this.model.filter_and_sort(),this.$el.html(this.template(this.model.attributes)),this.updateCounts(),this.updateUrl(),this},initialize:function(){this.listenTo(this.model,"change",this.render)}}),l}(window,jQuery,Backbone,wp);