// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.pages.AdminPods = app.views.Base.extend({ templateName: "pod_table", tooltipSelector: "th i", initialize: function() { this.pods = new app.collections.Pods(app.parsePreload("pods")); this.rows = []; // contains the table row views }, postRenderTemplate: function() { var self = this; this._showMessages(); // avoid reflowing the page for every entry var fragment = document.createDocumentFragment(); this.pods.each(function(pod) { self.rows.push(new app.views.PodEntry({ parent: fragment, model: pod }).render()); }); this.$("tbody").append(fragment); return this; }, _showMessages: function() { var msgs = document.createDocumentFragment(); if( gon.uncheckedCount && gon.uncheckedCount > 0 ) { var unchecked = $("