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

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

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