mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-10 22:24:06 +08:00
12 lines
387 B
CoffeeScript
12 lines
387 B
CoffeeScript
$ ->
|
|
$('.widget-shadowsocks .action-reset-password').click ->
|
|
if window.confirm 'Are you sure?'
|
|
request '/plugin/shadowsocks/reset_password/', {}, ->
|
|
location.reload()
|
|
|
|
$('.widget-shadowsocks .action-switch-method').click ->
|
|
request '/plugin/shadowsocks/switch_method/',
|
|
method: $('.widget-shadowsocks .input-method').val()
|
|
, ->
|
|
alert 'Success'
|