preserve open state of notifications
This commit is contained in:
parent
e982698de1
commit
7c600b0380
@ -70,11 +70,21 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
if(! $('#nav-' + notifyType + '-sub').hasClass('show')) {
|
if(! $('#nav-' + notifyType + '-sub').hasClass('show')) {
|
||||||
loadNotificationItems(notifyType);
|
loadNotificationItems(notifyType);
|
||||||
|
sessionStorage.setItem('notification_open', notifyType);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sessionStorage.removeItem('notification_open');
|
||||||
}
|
}
|
||||||
|
|
||||||
$(this).data('clicked', true);
|
$(this).data('clicked', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(sessionStorage.getItem('notification_open') !== null) {
|
||||||
|
var notifyType = sessionStorage.getItem('notification_open');
|
||||||
|
$('#nav-' + notifyType + '-sub').addClass('show');
|
||||||
|
loadNotificationItems(notifyType);
|
||||||
|
}
|
||||||
|
|
||||||
// Allow folks to stop the ajax page updates with the pause/break key
|
// Allow folks to stop the ajax page updates with the pause/break key
|
||||||
$(document).keydown(function(event) {
|
$(document).keydown(function(event) {
|
||||||
if(event.keyCode == '8') {
|
if(event.keyCode == '8') {
|
||||||
|
Reference in New Issue
Block a user