//= require spotlight/admin/blocks/resources_block SirTrevor.Blocks.FeaturedPages = (function(){ return Spotlight.Block.Resources.extend({ type: "featured_pages", icon_name: "pages", autocomplete_url: function() { return $(this.inner).closest('form[data-autocomplete-exhibit-pages-path]').data('autocomplete-exhibit-pages-path').replace("%25QUERY", "%QUERY"); }, autocomplete_template: function() { return '
{{log "Look at me"}}{{log thumbnail_image_url}}{{#if thumbnail_image_url}}
{{/if}}{{title}}
  {{description}}
' }, bloodhoundOptions: function() { return { prefetch: { url: this.autocomplete_url(), ttl: 0 } }; } }); })();