|
|
@ -46,7 +46,7 @@ $(document).ready(function () {
|
|
|
|
$("#ast-container").on("click", ".new-notification", function(e){
|
|
|
|
$("#ast-container").on("click", ".new-notification", function(e){
|
|
|
|
var notificationId = $(this).data("id");
|
|
|
|
var notificationId = $(this).data("id");
|
|
|
|
var redirectUrl = $(this).data("url");
|
|
|
|
var redirectUrl = $(this).data("url");
|
|
|
|
var getNotificationsAPI = "/devicemgt_admin/notifications/"+notificationId+"/CHECKED";
|
|
|
|
var getNotificationsAPI = "/api/device-mgt/v1.0/notifications/"+notificationId+"/CHECKED";
|
|
|
|
var errorMsgWrapper = "#error-msg";
|
|
|
|
var errorMsgWrapper = "#error-msg";
|
|
|
|
var errorMsg = "#error-msg span";
|
|
|
|
var errorMsg = "#error-msg span";
|
|
|
|
invokerUtil.put(
|
|
|
|
invokerUtil.put(
|
|
|
@ -87,7 +87,7 @@ function loadNotifications(){
|
|
|
|
var deviceListingSrc = deviceListing.attr("src");
|
|
|
|
var deviceListingSrc = deviceListing.attr("src");
|
|
|
|
var currentUser = deviceListing.data("currentUser");
|
|
|
|
var currentUser = deviceListing.data("currentUser");
|
|
|
|
$.template("notification-listing", deviceListingSrc, function (template) {
|
|
|
|
$.template("notification-listing", deviceListingSrc, function (template) {
|
|
|
|
var serviceURL = "/devicemgt_admin/notifications";
|
|
|
|
var serviceURL = "/api/device-mgt/v1.0/notifications";
|
|
|
|
var successCallback = function (data) {
|
|
|
|
var successCallback = function (data) {
|
|
|
|
var viewModel = {};
|
|
|
|
var viewModel = {};
|
|
|
|
data = JSON.parse(data);
|
|
|
|
data = JSON.parse(data);
|
|
|
|