app/assets/javascripts/spotlight/admin/blocks/pages_block.js in blacklight-spotlight-3.0.0.rc2 vs app/assets/javascripts/spotlight/admin/blocks/pages_block.js in blacklight-spotlight-3.0.0.rc3
- old
+ new
@@ -6,10 +6,10 @@
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 '<div class="autocomplete-item{{#unless published}} blacklight-private{{/unless}}">{{log "Look at me"}}{{log thumbnail_image_url}}{{#if thumbnail_image_url}}<div class="document-thumbnail"><img class="img-thumbnail" src="{{thumbnail_image_url}}" /></div>{{/if}}<span class="autocomplete-title">{{title}}</span><br/><small> {{description}}</small></div>' },
+ autocomplete_template: function() { return '<div class="autocomplete-item{{#unless published}} blacklight-private{{/unless}}">{{#if thumbnail_image_url}}<div class="document-thumbnail"><img class="img-thumbnail" 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