Sha256: 63e06d5d8bf76a0d4b6a870370bf072798064229128c0b2e3db0ab3eb33b52ea
Contents?: true
Size: 1.29 KB
Versions: 43
Compression:
Stored size: 1.29 KB
Contents
//= require spotlight/admin/blocks/browse_block SirTrevor.Blocks.SearchResults = (function(){ return SirTrevor.Blocks.Browse.extend({ type: "search_results", icon_name: 'search_results', searches_key: "slug", view_key: "view", plustextable: false, content: function() { return _.template([this.items_selector()].join("<hr />\n"))(this); }, item_options: function() { var block = this; var fields = $('[data-blacklight-configuration-search-views]').data('blacklight-configuration-search-views'); return $.map(fields, function(field) { checkbox = "" checkbox += "<div>"; checkbox += "<label for='" + block.formId(block.view_key + field.key) + "'>"; checkbox += "<input id='" + block.formId(block.view_key + field.key) + "' name='" + block.view_key + "[]' type='checkbox' value='" + field.key + "' /> "; checkbox += field.label; checkbox += "</label>"; checkbox += "</div>"; return checkbox; }).join("\n"); }, afterPanelRender: function(data, panel) { $(this.inner).find('.item-input-field').attr("disabled", "disabled"); }, afterPanelDelete: function() { $(this.inner).find('.item-input-field').removeAttr("disabled"); }, }); })();
Version data entries
43 entries across 43 versions & 1 rubygems