Enable notifications in secure pads

This commit is contained in:
yflory
2017-08-29 11:20:02 +02:00
parent 642dc17910
commit 51fa6287c1
4 changed files with 13 additions and 1 deletions

View File

@@ -75,6 +75,10 @@ define([
});
};
funcs.notify = function () {
ctx.sframeChan.event('EV_NOTIFY');
};
funcs.setLoginRedirect = function (cb) {
ctx.sframeChan.query('Q_SET_LOGIN_REDIRECT', null, function (err) {
if (cb) { cb(err); }

View File

@@ -78,4 +78,8 @@ define({
'Q_SEND_FRIEND_REQUEST': true, // Up query
'Q_INCOMING_FRIEND_REQUEST': true, // Down query
'EV_FRIEND_REQUEST': true, // Down event when the request is complete
// Set the tab notification when the content of the pad changes
'EV_NOTIFY': true,
});