mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-01 10:43:02 +08:00
12 lines
360 B
CoffeeScript
12 lines
360 B
CoffeeScript
$ ->
|
|
$('#widget-mysql .update-password button').click ->
|
|
$.post '/plugin/mysql/update_password/', JSON.stringify
|
|
password: $('#widget-mysql .update-password input').val()
|
|
.fail (jqXHR) ->
|
|
if jqXHR.responseJSON?.error
|
|
alert jqXHR.responseJSON.error
|
|
else
|
|
alert jqXHR.statusText
|
|
.success ->
|
|
location.reload()
|