From 4839c235da1ce6ed61c71d0a9d28df14c01b567b Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 25 Feb 2012 03:28:07 -0800 Subject: theme seen,unseen notifications --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 3a10ae468..36ef946ca 100755 --- a/js/main.js +++ b/js/main.js @@ -124,7 +124,7 @@ eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); - html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date')); + html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen')); nnm.append(html); }); -- cgit v1.2.3 From da1411af476ffd9b46a6931da3d7641f31e2e116 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 25 Feb 2012 16:16:52 -0800 Subject: do not set notify popup empty anymore (though another solution is needed for firehose mode) --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 36ef946ca..e717ca44e 100755 --- a/js/main.js +++ b/js/main.js @@ -129,8 +129,8 @@ }); } else { - $("#nav-notifications-linkmenu").removeClass("on"); - $("#nav-notifications-menu").html(notifications_empty); + // $("#nav-notifications-linkmenu").removeClass("on"); + // $("#nav-notifications-menu").html(notifications_empty); } if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') } $('#notify-update').html(notif); -- cgit v1.2.3 From 35b5850af705ced6eca88b45cd60de41b5a897bc Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 25 Feb 2012 17:04:31 -0800 Subject: missed a spot --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index e717ca44e..515bd0fd3 100755 --- a/js/main.js +++ b/js/main.js @@ -132,7 +132,7 @@ // $("#nav-notifications-linkmenu").removeClass("on"); // $("#nav-notifications-menu").html(notifications_empty); } - if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') } + if(notif == 0) { /* notif = ''; $('#notify-update').removeClass('show') */ } else { $('#notify-update').addClass('show') } $('#notify-update').html(notif); var eSysmsg = $(data).find('sysmsgs'); -- cgit v1.2.3 From 9b6afc2a38cc00d3fabfbb90277665df820c05a6 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 25 Feb 2012 17:07:38 -0800 Subject: one more attempt --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 515bd0fd3..a5d1214cb 100755 --- a/js/main.js +++ b/js/main.js @@ -114,7 +114,7 @@ var eNotif = $(data).find('notif') notif = eNotif.attr('count'); - if (notif>0){ + if (notif>=0){ $("#nav-notifications-linkmenu").addClass("on"); nnm = $("#nav-notifications-menu"); @@ -132,7 +132,7 @@ // $("#nav-notifications-linkmenu").removeClass("on"); // $("#nav-notifications-menu").html(notifications_empty); } - if(notif == 0) { /* notif = ''; $('#notify-update').removeClass('show') */ } else { $('#notify-update').addClass('show') } + if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') } $('#notify-update').html(notif); var eSysmsg = $(data).find('sysmsgs'); -- cgit v1.2.3