Sha256: f4c923a8c4b42775b5f089db6d8358d57c5230d8189fd7ad925efdcd743a8b34

Contents?: true

Size: 731 Bytes

Versions: 24

Compression:

Stored size: 731 Bytes

Contents

//= require spotlight/admin/blocks/solr_documents_base_block

SirTrevor.Blocks.SolrDocuments = (function(){

  return SirTrevor.Blocks.SolrDocumentsBase.extend({
    type: "solr_documents",

    icon_name: "items",

    item_options: function() { return this.caption_options() + this.zpr_option(); },

    zpr_option: function() {
      return `
        <div>
        <input name="${this.zpr_key}" type="hidden" value="false" />
        <input name="${this.zpr_key}" id="${this.formId(this.zpr_key)}" data-key="${this.zpr_key}" type="checkbox" value="true" />
        <label for="${this.formId(this.zpr_key)}">${i18n.t("blocks:solr_documents:zpr:title")}</label>
        </div>
      `
    },

    zpr_key: 'zpr_link'
  });

})();

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta5 app/javascript/spotlight/admin/blocks/solr_documents_block.js
blacklight-spotlight-3.6.0.beta4 app/javascript/spotlight/admin/blocks/solr_documents_block.js
blacklight-spotlight-3.6.0.beta3 app/javascript/spotlight/admin/blocks/solr_documents_block.js
blacklight-spotlight-3.6.0.beta1 app/javascript/spotlight/admin/blocks/solr_documents_block.js