Sha256: 435f33cb0b1611681a4ae3faf2275dbe67ae0c75b7a93818a734585246f8e34f

Contents?: true

Size: 515 Bytes

Versions: 39

Compression:

Stored size: 515 Bytes

Contents

(function ($){
  Spotlight.Block = SirTrevor.Block.extend({
    formable: true,
    editorHTML: function() {
      return _.template(this.template)(this);
    },
    beforeBlockRender: function() {
      this.availableMixins.forEach(function(mixin) {
        if (this[mixin] && SirTrevor.BlockMixins[_.capitalize(mixin)].preload) {
          this.withMixin(SirTrevor.BlockMixins[_.capitalize(mixin)]);
        }
      }, this);
    },
    $instance: function() { return $('#' + this.instanceID); }
  })
})(jQuery);

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
blacklight-spotlight-0.24.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.23.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.22.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.21.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.20.3 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.20.2 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.20.1 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.20.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.19.2 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.19.1 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.19.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.18.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.17.1 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.17.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.16.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.15.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.14.2 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.14.1 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.14.0 app/assets/javascripts/spotlight/blocks/block.js
blacklight-spotlight-0.13.0 app/assets/javascripts/spotlight/blocks/block.js