Sha256: 719f931611899250ec06af51b8bbcedab0f4d39cf25d237202a8b35bcee88008

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

@Mercury.dialogHandlers.forecolor = ->
  @element.find('.picker, .last-picked').click (event) =>
    color = $(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

2 entries across 2 versions & 1 rubygems

Version Path
mercury-rails-0.1.1 app/assets/javascripts/mercury/dialogs/forecolor.js.coffee
mercury-rails-0.1.0 app/assets/javascripts/mercury/dialogs/forecolor.js.coffee