mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-25 17:08:21 +01:00
fix: PushNotification service show/hide animation bug
All checks were successful
gitea-sync/antos-frontend/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos-frontend/pipeline/head This commit looks good
This commit is contained in:
parent
45b019725d
commit
9fa3ab92bf
@ -172,15 +172,19 @@ namespace OS {
|
||||
} else {
|
||||
$(this.nzone).show();
|
||||
}
|
||||
console.log(evt, evt.data.item.aid);
|
||||
this.view = !this.view;
|
||||
if (!this.cb) {
|
||||
this.cb = (e) => {
|
||||
const list_id = $(evt.data.item).attr("list-id");
|
||||
console.log(e.target, list_id);
|
||||
if (
|
||||
!$(e.target).closest($(this.nzone)).length &&
|
||||
!$(e.target).closest(evt.data.item).length
|
||||
!$(e.target).closest(`[list-id="${list_id}"]`).length
|
||||
//!$(e.target).closest($(evt.data.item)).length
|
||||
) {
|
||||
$(this.nzone).hide();
|
||||
$(document).unbind("click", this.cb);
|
||||
$(document).off("click", this.cb);
|
||||
this.view = !this.view;
|
||||
}
|
||||
};
|
||||
@ -188,7 +192,7 @@ namespace OS {
|
||||
if (this.view) {
|
||||
$(document).on("click", this.cb);
|
||||
} else {
|
||||
$(document).unbind("click", this.cb);
|
||||
$(document).off("click", this.cb);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,4 +6,5 @@ Basic services:
|
||||
- Calendar service
|
||||
|
||||
### change logs
|
||||
- 0.1.2-b: fix show/hide animation bug
|
||||
- 0.1.1-a: use system css variables in theme
|
@ -8,7 +8,7 @@
|
||||
"email": "xsang.le@gmail.com",
|
||||
"licences": "GPLv3"
|
||||
},
|
||||
"version": "0.1.1-a",
|
||||
"version": "0.1.2-b",
|
||||
"category": "System",
|
||||
"iconclass": "fa fa-cog",
|
||||
"mimes": []
|
||||
|
Loading…
Reference in New Issue
Block a user