Sha256: 26c8693f7afdccdba91e9f8c51999c43c15ab5ba7f0a1004c77a326902f38e3f

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

var initializer = function() {
  setupColorPicker();

  $(document).on('has_many_add:after', setupColorPicker);

  function setupColorPicker() {
    $('.color-picker-input').each(function(i, el) {
      $(el).paletteColorPicker({
        'clear_btn': 'last',
      });
    });
  }
};

$(initializer);
$(document).on('turbolinks:load', initializer);

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
activeadmin_addons-1.9.0 app/javascript/activeadmin_addons/inputs/color-picker.js
activeadmin_addons-1.8.3 app/javascript/activeadmin_addons/inputs/color-picker.js
activeadmin_addons-1.8.2 app/javascript/activeadmin_addons/inputs/color-picker.js
activeadmin_addons_rails6-1.7.2 app/javascript/activeadmin_addons/inputs/color-picker.js
activeadmin_addons-1.7.1 app/assets/javascripts/activeadmin_addons/inputs/color-picker.js
activeadmin_addons-1.7.0 app/assets/javascripts/activeadmin_addons/inputs/color-picker.js