Sha256: f00e854faf407aea979444fab9471e7ad1d44b732ea11c248cd1a995f83cb8a5

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

@Mercury.dialogHandlers.foreColor = ->
  @element.find('.picker, .last-picked').on 'click', (event) =>
    color = jQuery(event.target).css('background-color').toHex()
    @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 & 2 rubygems

Version Path
kiteditor-1.0.12 app/assets/javascripts/mercury/dialogs/forecolor.js.coffee
mercury-rails-0.9.0 app/assets/javascripts/mercury/dialogs/forecolor.js.coffee
mercury-rails-0.8.0 app/assets/javascripts/mercury/dialogs/forecolor.js.coffee