Created
March 5, 2013 03:26
-
-
Save merencia/5087753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
$('.weal-palette').wealpalette {between: 3, variant: 7, expurge: 2, dropdown: true}, | |
(color) -> | |
$(this).css('background', color) |
Se estiver em um modal:
$('#modal-category').on 'shown', ->
$('#modal-category .weal-palette').wealpalette {between: 3, variant: 7, expurge: 2, dropdown: true},
(color) ->
$(this).css('background', color)
$('.weal-palette').wealpalette({between: 3, variant: 7, expurge: 2, dropdown: true}, (color) -> $(this).css('background', color))
tenta assim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://coffeescript.org/#try:%24%20-%3E%20%20%0A%20%20%24('.weal-palette').wealpalette%20%7Bbetween%3A%203%2C%20variant%3A%207%2C%20expurge%3A%202%2C%20dropdown%3A%20true%7D%2C%20%0A%20%20%20%20(color)%20-%3E%20%0A%20%20%20%20%20%20%24(this).css('background'%2C%20color)