From 70947f179c7154e9e10c84288742d3b35326351e Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Sat, 13 Jun 2020 17:07:22 +0200 Subject: [PATCH] tpl: moved changePwd() to lib.js --- default.tpl | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/default.tpl b/default.tpl index 1dec9e4..e9f2a55 100644 --- a/default.tpl +++ b/default.tpl @@ -28,7 +28,14 @@ def 3.0 - + [] @@ -67,19 +74,6 @@ def 3.0 if ($('#menu-panel').css('position').indexOf('sticky') < 0) // sticky is not supported setInterval(function(){ $('#wrapper').css('margin-top', $('#menu-panel').height()+5) }, 300); // leave space for the fixed panel }); - - function changePwd() { - {.if|{.can change pwd.} - | ask('{.!Warning: the password will be sent unencrypted to the server. For better security change the password from HFS window..}
{.!Enter new password.}', 'password', function(s){ - s && ajax('changepwd', {'new':s}, getStdAjaxCB(function(){ - showLoading(false) - showMsg("{.!Password changed.}") - })) - }) - | showError("{.!Sorry, you lack permissions for this action.}") - .} - }//changePwd -