Sha256: f9ed0f808ce664c0da8c6c7491030ab5997df94e8bb18cf2811bf35a4deee09e
Contents?: true
Size: 1.18 KB
Versions: 46
Compression:
Stored size: 1.18 KB
Contents
//= require spotlight/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
46 entries across 46 versions & 1 rubygems