From a12264193ffe9daa04155aff78a1feaff82b7670 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 18 Dec 2012 16:17:08 -0800 Subject: modularise the notification popups --- install/database.sql | 4 ++-- install/update.php | 12 +++++++++++- js/main.js | 26 +++++++++++++++++++++++--- version.inc | 2 +- view/tpl/nav.tpl | 15 +++++++++++---- 5 files changed, 48 insertions(+), 11 deletions(-) diff --git a/install/database.sql b/install/database.sql index 574aaa38e..342d93055 100644 --- a/install/database.sql +++ b/install/database.sql @@ -299,7 +299,7 @@ CREATE TABLE IF NOT EXISTS `deliverq` ( CREATE TABLE IF NOT EXISTS `event` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `account` int(10) unsigned NOT NULL DEFAULT '0', + `aid` int(10) unsigned NOT NULL DEFAULT '0', `uid` int(11) NOT NULL, `cid` int(11) NOT NULL, `message_id` char(255) NOT NULL, @@ -328,7 +328,7 @@ CREATE TABLE IF NOT EXISTS `event` ( KEY `adjust` (`adjust`), KEY `nofinish` (`nofinish`), KEY `ignore` (`ignore`), - KEY `account` (`account`) + KEY `aid` (`aid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `fcontact` ( diff --git a/install/update.php b/install/update.php index f767c2f22..e3394b5bc 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ ').append( $("#nav-notifications-see-all").clone() ).html()); //outerHtml hack @@ -502,7 +522,7 @@ function updateConvItems(mode,data) { var notify_menu = $("#nav-notifications-menu"); - var pingExCmd = 'ping/notify' + ((localUser != 0) ? '?f=&uid=' + localUser : ''); + var pingExCmd = 'ping/' + notifyType + ((localUser != 0) ? '?f=&uid=' + localUser : ''); $.get(pingExCmd,function(data) { if(data.invalid == 1) { diff --git a/version.inc b/version.inc index 24fb06e6d..bdbdd882b 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2012-12-16.171 +2012-12-18.173 diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 234b20854..d052cde3f 100644 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -14,16 +14,23 @@ {{ if $nav.network }} {{ endif }} {{ if $nav.home }} {{ endif }} - + + {{ if $nav.all_events }} + + {{ endif }} + {{ if $nav.intros }}