mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
WebUIs: fix some check conditions in js code
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
44ebf2f48d
commit
c2aed5ee92
1 changed files with 2 additions and 2 deletions
|
@ -313,14 +313,14 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||||
|
|
||||||
KTUtil.onDOMContentLoaded(function () {
|
KTUtil.onDOMContentLoaded(function () {
|
||||||
var dismissErrorBtn = $('#id_dismiss_error_msg');
|
var dismissErrorBtn = $('#id_dismiss_error_msg');
|
||||||
if (dismissErrorBtn){
|
if (dismissErrorBtn.length){
|
||||||
dismissErrorBtn.on("click", function(){
|
dismissErrorBtn.on("click", function(){
|
||||||
$('#errorMsg').addClass("d-none");
|
$('#errorMsg').addClass("d-none");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var logoutBtn = $('#id_logout_link');
|
var logoutBtn = $('#id_logout_link');
|
||||||
if (logoutBtn){
|
if (logoutBtn.length){
|
||||||
logoutBtn.on("click", function(){
|
logoutBtn.on("click", function(){
|
||||||
doLogout();
|
doLogout();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue