Sha256: 165c1f0cab9dd2213b67f3a80b976a6315e4f64cd69c82beb67a6eb12bfccd07

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

@Mercury.dialogHandlers.backcolor = ->
  @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: 'backcolor', value: color})

Version data entries

2 entries across 2 versions & 1 rubygems

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