more changes to notification dropdown in header bar

This commit is contained in:
Julian Lam
2013-05-23 12:54:57 -04:00
parent 64f320743a
commit c8d48127ad
7 changed files with 131 additions and 23 deletions

View File

@@ -240,9 +240,14 @@ var express = require('express'),
app.get('/api/:method/:id*', api_method);
app.get('/test', function(req, res) {
user.notifications.get(2, function(notifs) {
res.send(JSON.stringify(notifs, null, 4));
notifications.mark_read_multiple([1, 2], 1, function(success) {
res.send('mark: ' + success);
});
// notifications.create('some text', 5, '/category/2/general-discussion', function(nid) {
// notifications.push(nid, 1, function() {
// res.send('nid: ', nid)
// });
// });
});