mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 15:10:23 +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 () {
|
||||
var dismissErrorBtn = $('#id_dismiss_error_msg');
|
||||
if (dismissErrorBtn){
|
||||
if (dismissErrorBtn.length){
|
||||
dismissErrorBtn.on("click", function(){
|
||||
$('#errorMsg').addClass("d-none");
|
||||
});
|
||||
}
|
||||
|
||||
var logoutBtn = $('#id_logout_link');
|
||||
if (logoutBtn){
|
||||
if (logoutBtn.length){
|
||||
logoutBtn.on("click", function(){
|
||||
doLogout();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue