Sha256: a670536e8ae6766554e8e236a3102b1371977f1e0482a7813f00e3c0776ad414

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

// ActsAsTaggableOn Administrate Form
$(function() {
  $(".field-unit--acts-as-taggable .field-unit__field > input").each(function(elem) {
    var $this = $(this);
    var opts = $this.data('tag-options');

    $this.selectize({
      delimiter: ", ",
      persist: false,
      options: opts,
      create: function(input) {
        return {
          value: input,
          text: input
        };
      }
    });
  })
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
administrate-field-acts_as_taggable-0.0.4 app/assets/javascripts/administrate-field-taggable/application.js
administrate-field-acts_as_taggable-0.0.3 app/assets/javascripts/administrate-field-taggable/application.js
administrate-field-acts_as_taggable-0.0.2 app/assets/javascripts/administrate-field-taggable/application.js
administrate-field-acts_as_taggable-0.0.1 app/assets/javascripts/administrate-field-taggable/application.js