Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curAction = "news"
- fading = false
- $ ->
- $('.vendor-action').click (e) ->
- action = $(@).data('action')
- if action isnt curAction and fading isnt true
- fading = true
- $(@).removeClass('btn-primary')
- $("#btn-"+curAction).addClass('btn-primary')
- $('#'+curAction).fadeOut(500, -> $('#'+action+'').fadeIn(500, -> fading = false))
- curAction = action
- e.preventDefault()
Add Comment
Please, Sign In to add comment