mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-06-15 23:12:58 +08:00
14 lines
381 B
CoffeeScript
14 lines
381 B
CoffeeScript
$ ->
|
|
$('.widget-ssh .action-kill').click ->
|
|
if window.confirm 'Are you sure?'
|
|
request '/plugin/ssh/kill',
|
|
pid: $(@).parents('tr').data 'id'
|
|
, ->
|
|
location.reload()
|
|
|
|
$('.widget-ssh .action-update-password').click ->
|
|
request '/plugin/ssh/update_password',
|
|
password: $('.widget-ssh .input-password').val()
|
|
, ->
|
|
location.reload()
|