PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 14.4.2
Jetpack – WP Security, Backup, Speed, & Growth v14.4.2
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 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 All 500 releases
jetpack / _inc / build / jetpack-modules.models.min.js
jetpack-modules.models.min.js
1 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 window.jetpackModules=window.jetpackModules||{},window.jetpackModules.models=function(t,e,r,a){"use strict";var s={};return s.Modules=a.Model.extend({visibles:{},filter_and_sort:function(){var t,a=e(".subsubsub .current a"),s=this.get("raw"),i=e(".button-group.filter-active .active"),o=e(".button-group.sort .active"),n=e("#srch-term-search-input").val().toLowerCase();return a.closest("li").hasClass("all")||(s=r.filter(s,(function(t){return r.contains(t.module_tags,a.data("title"))}))),i.data("filter-by")&&(s=r.filter(s,(function(t){return t[i.data("filter-by")]===i.data("filter-value")}))),n.length&&(s=r.filter(s,(function(t){return-1!==(t.name+" "+t.description+" "+t.long_description+" "+t.search_terms+" "+t.module_tags).toLowerCase().indexOf(n)}))),o.data("sort-by")&&(s=r.sortBy(s,o.data("sort-by")),"reverse"===o.data("sort-order")&&s.reverse()),t=r.groupBy(s,"available"),r.has(t,"false")&&(s=[].concat(t.true,t.false)),this.set("items",s),this},initialize:function(){var t=this.get("items");this.set("raw",t)}}),s}(window,jQuery,_,Backbone);