Skip to content

Instantly share code, notes, and snippets.

@merencia
Created March 5, 2013 03:26
Show Gist options
  • Save merencia/5087753 to your computer and use it in GitHub Desktop.
Save merencia/5087753 to your computer and use it in GitHub Desktop.
$ ->
$('.weal-palette').wealpalette {between: 3, variant: 7, expurge: 2, dropdown: true},
(color) ->
$(this).css('background', color)
@caarlos0
Copy link

caarlos0 commented Mar 5, 2013

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)

@caarlos0
Copy link

caarlos0 commented Mar 5, 2013

$('.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