fix jade warning

This commit is contained in:
jysperm
2014-07-18 21:57:18 +08:00
parent 052b9e6ad8
commit 5bc0ff7e08
4 changed files with 7 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ $ ->
button = $ @
prehead = if button.hasClass 'btn-success' then '' else 'un'
$.post "/plan/#{prehead}subscribe/", JSON.stringify {
plan: button.parent().data 'type'
plan: button.parent().parent().data 'type'
}
.success ->
location.reload()