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

  ssh.find 'button'
      .on 'click', (e) ->
        e.preventDefault()
        $.post '/plugin/ssh/update_passwd/', {
          passwd: ssh.find('input').val()
        }
        .success ->

  fpm.on 'click', (e) ->
    e.preventDefault()
    enable = if fpm.hasClass 'btn-success' then true else false
    $.post '/plugin/phpfpm/switch/', JSON.stringify {enable: enable}
    .success ->
      location.reload()

