Sha256: 98ad7e9615a6427a2bbb71509ad781bfaa5d0192f1c3ae7f516ea8fbf272b90c
Contents?: true
Size: 1.19 KB
Versions: 7
Compression:
Stored size: 1.19 KB
Contents
//= require spotlight/admin/blocks/resources_block SirTrevor.Blocks.Browse = (function(){ return Spotlight.Block.Resources.extend({ type: "browse", icon_name: "browse", autocomplete_url: function() { return $(this.inner).closest('form[data-autocomplete-exhibit-searches-path]').data('autocomplete-exhibit-searches-path').replace("%25QUERY", "%QUERY"); }, autocomplete_template: function() { return '<div class="autocomplete-item{{#unless published}} blacklight-private{{/unless}}">{{#if thumbnail_image_url}}<div class="document-thumbnail thumbnail"><img src="{{thumbnail_image_url}}" /></div>{{/if}}<span class="autocomplete-title">{{title}}</span><br/><small> {{description}}</small></div>' }, bloodhoundOptions: function() { return { prefetch: { url: this.autocomplete_url(), ttl: 0 } }; }, item_options: function() { return [ '<label>', '<input type="hidden" name="display-item-counts" value="false" />', '<input type="checkbox" name="display-item-counts" value="true" checked />', '<%= i18n.t("blocks:browse:item_counts") %>', '</label>' ].join("\n") }, }); })();
Version data entries
7 entries across 7 versions & 1 rubygems