main.js simplify notify_id checks

This commit is contained in:
Mario
2021-12-17 21:08:20 +00:00
parent 5ab90f7791
commit 565602538c
2 changed files with 3 additions and 3 deletions

View File

@@ -87,4 +87,4 @@ class ZotURL {
return ids_to_array($r,'hubloc_url'); return ids_to_array($r,'hubloc_url');
} }
} }

View File

@@ -178,7 +178,7 @@ $(document).ready(function() {
path = 'hq'; path = 'hq';
} }
if(notify_id != null) { if(notify_id) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: 'notify', url: 'notify',
@@ -999,7 +999,7 @@ function liveUpdate(notify_id) {
// else data was valid - reset the recursion counter // else data was valid - reset the recursion counter
liveRecurse = 0; liveRecurse = 0;
if(typeof notify_id !== 'undefined' && notify_id !== 'undefined') { if(notify_id) {
$.post( $.post(
"notify", "notify",
{ {