mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-13 07:01:20 +08:00
14 lines
389 B
CoffeeScript
14 lines
389 B
CoffeeScript
$ ->
|
|
$('.widget-ssh .action-kill').click ->
|
|
if window.confirm 'Are you sure?'
|
|
request '/plugin/ssh/kill',
|
|
pid: $(@).parents('tr').data 'id'
|
|
, =>
|
|
$(@).parents('tr').remove()
|
|
|
|
$('.widget-ssh .action-update-password').click ->
|
|
request '/plugin/ssh/update_password',
|
|
password: $('.widget-ssh .input-password').val()
|
|
, ->
|
|
alert 'Success'
|