|
|
@ -117,7 +117,7 @@ function loadNewNotifications() {
|
|
|
|
var currentUser = notifications.data("currentUser");
|
|
|
|
var currentUser = notifications.data("currentUser");
|
|
|
|
|
|
|
|
|
|
|
|
$.template("notification-listing", notifications.attr("src"), function (template) {
|
|
|
|
$.template("notification-listing", notifications.attr("src"), function (template) {
|
|
|
|
var serviceURL = emmAdminBasePath + "/notifications?status=NEW";
|
|
|
|
var serviceURL = emmAdminBasePath + "/notifications?offset=0&limit=5&status=NEW";
|
|
|
|
invokerUtil.get(
|
|
|
|
invokerUtil.get(
|
|
|
|
serviceURL,
|
|
|
|
serviceURL,
|
|
|
|
// on success
|
|
|
|
// on success
|
|
|
@ -128,6 +128,7 @@ function loadNewNotifications() {
|
|
|
|
if (responsePayload["notifications"]) {
|
|
|
|
if (responsePayload["notifications"]) {
|
|
|
|
if (responsePayload.count > 0) {
|
|
|
|
if (responsePayload.count > 0) {
|
|
|
|
viewModel["notifications"] = responsePayload["notifications"];
|
|
|
|
viewModel["notifications"] = responsePayload["notifications"];
|
|
|
|
|
|
|
|
viewModel["appContext"] = context;
|
|
|
|
$(messageSideBar).html(template(viewModel));
|
|
|
|
$(messageSideBar).html(template(viewModel));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$(messageSideBar).html('<div class="alert alert-info" role="alert"><i class="icon fw fw-info"></i>No new notifications found...</div>');
|
|
|
|
$(messageSideBar).html('<div class="alert alert-info" role="alert"><i class="icon fw fw-info"></i>No new notifications found...</div>');
|
|
|
|