|
|
@ -515,6 +515,14 @@ $(window).on 'load', () -> |
|
|
|
if window.datas.ppolicy? and $('#newpassword').length |
|
|
|
if window.datas.ppolicy? and $('#newpassword').length |
|
|
|
$('#reset').change togglecheckpassword |
|
|
|
$('#reset').change togglecheckpassword |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if datas['enablePasswordDisplay'] |
|
|
|
|
|
|
|
$(".toggle-password").mousedown (e) -> |
|
|
|
|
|
|
|
$(this).toggleClass("fa-eye fa-eye-slash"); |
|
|
|
|
|
|
|
$("input[name=password]").attr("type", "text"); |
|
|
|
|
|
|
|
$(".toggle-password").mouseup (e) -> |
|
|
|
|
|
|
|
$(this).toggleClass("fa-eye fa-eye-slash"); |
|
|
|
|
|
|
|
$("input[name=password]").attr("type", "password"); |
|
|
|
|
|
|
|
|
|
|
|
# Ping if asked |
|
|
|
# Ping if asked |
|
|
|
if datas['pingInterval'] and datas['pingInterval'] > 0 |
|
|
|
if datas['pingInterval'] and datas['pingInterval'] > 0 |
|
|
|
window.setTimeout ping, datas['pingInterval'] |
|
|
|
window.setTimeout ping, datas['pingInterval'] |
|
|
@ -577,4 +585,4 @@ $(window).on 'load', () -> |
|
|
|
console.log 'Error', err if err |
|
|
|
console.log 'Error', err if err |
|
|
|
res = JSON.parse j.responseText if j |
|
|
|
res = JSON.parse j.responseText if j |
|
|
|
if res and res.error |
|
|
|
if res and res.error |
|
|
|
console.log 'Returned error', res |
|
|
|
console.log 'Returned error', res |
|
|
|