File "jetpack-modules.views.min.js"
Full path: /home/webcknlt/admissiontell.com/wp-content/plugins/jetpack/_inc/build/jetpack-modules.views.min.js
File
size: 1.03 B
MIME-type: text/plain
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
window.jetpackModules=window.jetpackModules||{},window.jetpackModules.views=function(t,e,a,o){"use strict";var n={};return n.List_Table=a.View.extend({template:o.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)}}),n}(window,jQuery,Backbone,wp);