mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:10:11 +00:00
new notify sort of working in testbubble
This commit is contained in:
parent
808b886a3e
commit
41636a50aa
6 changed files with 52 additions and 3 deletions
11
js/main.js
11
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue