diff options
author | friendica <info@friendica.com> | 2012-02-22 23:34:30 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-22 23:34:30 -0800 |
commit | 41636a50aa4fd3f53ad9f9e9d797bfcc37ba8e13 (patch) | |
tree | 9b941d37b562480ff89f9d84d6514f40d4ecf7c0 /js | |
parent | 808b886a3e18b07c63171c4833334e2cf77ddf71 (diff) | |
download | volse-hubzilla-41636a50aa4fd3f53ad9f9e9d797bfcc37ba8e13.tar.gz volse-hubzilla-41636a50aa4fd3f53ad9f9e9d797bfcc37ba8e13.tar.bz2 volse-hubzilla-41636a50aa4fd3f53ad9f9e9d797bfcc37ba8e13.zip |
new notify sort of working in testbubble
Diffstat (limited to 'js')
-rwxr-xr-x | js/main.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/main.js b/js/main.js index 4cb278ee8..3a10ae468 100755 --- a/js/main.js +++ b/js/main.js @@ -89,6 +89,7 @@ /* notifications template */ var notifications_tpl= unescape($("#nav-notifications-template[rel=template]").html()); var notifications_all = unescape($('<div>').append( $("#nav-notifications-see-all").clone() ).html()); //outerHtml hack + var notifications_mark = unescape($('<div>').append( $("#nav-notifications-mark-all").clone() ).html()); //outerHtml hack var notifications_empty = unescape($("#nav-notifications-menu").html()); /* nav update event */ @@ -117,7 +118,7 @@ $("#nav-notifications-linkmenu").addClass("on"); nnm = $("#nav-notifications-menu"); - nnm.html(notifications_all); + nnm.html(notifications_all + notifications_mark); //nnm.attr('popup','true'); eNotif.children("note").each(function(){ @@ -518,6 +519,14 @@ function checkboxhighlight(box) { } } +function notifyMarkAll() { + $.get('notify/mark/all', function(data) { + if(timer) clearTimeout(timer); + timer = setTimeout(NavUpdate,1000); + }); +} + + function setupFieldRichtext(){ tinyMCE.init({ theme : "advanced", |