updates 1201 and 1200 should return success for postgres. notifications: remove class show and session storage entry when we mark all notifications seen
This commit is contained in:
parent
43992dc463
commit
2047801b85
@ -21,4 +21,4 @@ function run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,15 @@ function run() {
|
|||||||
DROP INDEX item_type,
|
DROP INDEX item_type,
|
||||||
ADD INDEX uid_item_type (uid, item_type)
|
ADD INDEX uid_item_type (uid, item_type)
|
||||||
");
|
");
|
||||||
|
|
||||||
|
if($r)
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
return UPDATE_FAILED;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($r)
|
|
||||||
return UPDATE_SUCCESS;
|
|
||||||
return UPDATE_FAILED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,11 +13,15 @@ class _1201 {
|
|||||||
ADD INDEX uid_item_blocked (uid, item_blocked),
|
ADD INDEX uid_item_blocked (uid, item_blocked),
|
||||||
ADD INDEX item_deleted_pending_remove_changed (item_deleted, item_pending_remove, changed)
|
ADD INDEX item_deleted_pending_remove_changed (item_deleted, item_pending_remove, changed)
|
||||||
");
|
");
|
||||||
|
|
||||||
|
if($r)
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
return UPDATE_FAILED;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($r)
|
|
||||||
return UPDATE_SUCCESS;
|
|
||||||
return UPDATE_FAILED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -357,7 +357,9 @@ function closeMenu(theID) {
|
|||||||
function markRead(notifType) {
|
function markRead(notifType) {
|
||||||
$.get('ping?f=&markRead='+notifType);
|
$.get('ping?f=&markRead='+notifType);
|
||||||
$('.' + notifType + '-button').hide();
|
$('.' + notifType + '-button').hide();
|
||||||
|
$('#nav-' + notifType + '-sub').removeClass('show');
|
||||||
sessionStorage.removeItem(notifType + '_notifications_cache');
|
sessionStorage.removeItem(notifType + '_notifications_cache');
|
||||||
|
sessionStorage.removeItem('notification_open');
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(updateInit,2000);
|
timer = setTimeout(updateInit,2000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user