Sha256: 54a83a79a21a607ded1108f69099678892987fbca222508855f4f9008451be6c

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

//= require ../../external/palette-color-picker/palette-color-picker
//= require_self

$(function() {

  setupColorPicker();

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin_addons-0.6.2 app/assets/javascripts/activeadmin_addons/color-picker.js
activeadmin_addons-0.6.1 app/assets/javascripts/activeadmin_addons/color-picker.js