mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
make more compact
This commit is contained in:
@ -244,15 +244,9 @@ function notificationCheck() {
|
||||
{
|
||||
success: function(response) {
|
||||
if (response.length == 0) {
|
||||
if (current_alert_state == true){
|
||||
$("#notification-alert").addClass("d-none");
|
||||
current_alert_state = false;
|
||||
}
|
||||
} else {
|
||||
if (current_alert_state == false){
|
||||
$("#notification-alert").removeClass("d-none");
|
||||
current_alert_state = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user