mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-01 10:43:02 +08:00
12 lines
348 B
CoffeeScript
12 lines
348 B
CoffeeScript
$ ->
|
|
$('#widget-shadowsocks .action-reset-password').click ->
|
|
if window.confirm 'Are you sure?'
|
|
$.post '/plugin/shadowsocks/reset_password/', {}
|
|
.fail (jqXHR) ->
|
|
if jqXHR.responseJSON?.error
|
|
alert jqXHR.responseJSON.error
|
|
else
|
|
alert jqXHR.statusText
|
|
.success ->
|
|
location.reload()
|