Sha256: 9df91ec1ff2b7aca5422e4b5288b0808a17c54bdb46cf47aa72137a8994254e5

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

@Mercury.dialogHandlers.foreColor = ->
  @element.find('.picker, .last-picked').click (event) =>
    color = jQuery(event.target).css('background-color')
    @element.find('.last-picked').css({background: color})
    @button.css({backgroundColor: color})
    Mercury.trigger('action', {action: 'foreColor', value: color})

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mercury-rails-0.2.3 vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee
mercury-rails-0.2.0 vendor/assets/javascripts/mercury/dialogs/forecolor.js.coffee
mercury-rails-0.1.2 app/assets/javascripts/mercury/dialogs/forecolor.js.coffee