Sha256: 97c6a0d888ecf0a1434743b7bea7531355f56e3218b6f1e8e1e3922c1dd03f32
Contents?: true
Size: 1.11 KB
Versions: 24
Compression:
Stored size: 1.11 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 this.items_selector() }, item_options: function() { var block = this; var fields = $('[data-blacklight-configuration-search-views]').data('blacklight-configuration-search-views'); return $.map(fields, function(field) { return `<div> <label for='${block.formId(block.view_key + field.key)}'> <input id='${block.formId(block.view_key + field.key)}' name='${block.view_key}[]' type='checkbox' value='${field.key}' /> ${field.label} </label> </div>` }).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
24 entries across 24 versions & 1 rubygems