| Line 8... |
Line 8... |
| 8 |
var userIds = $('#fofo-users').val();
|
8 |
var userIds = $('#fofo-users').val();
|
| 9 |
console.log("multipleUsers",userIds);
|
9 |
console.log("multipleUsers",userIds);
|
| 10 |
var campaignName = $('input[name="campaignName"]').val();
|
10 |
var campaignName = $('input[name="campaignName"]').val();
|
| 11 |
var title = $('input[name="title"]').val();
|
11 |
var title = $('input[name="title"]').val();
|
| 12 |
var message = $('input[name="message"]').val();
|
12 |
var message = $('input[name="message"]').val();
|
| 13 |
var longNotificationtext = $('#longNotificationtext').val();
|
- |
|
| 14 |
var imageUrl = $('input[name="imageUrl"]').val();
|
13 |
var imageUrl = $('input[name="imageUrl"]').val();
|
| 15 |
var type = $('#type').val();
|
14 |
var type = $('#type').val();
|
| 16 |
var expiryTime=$('#expireSat').val();
|
15 |
var expiryTime=$('#expireSat').val();
|
| 17 |
var url = $('input[name="url"]').val();
|
16 |
var url = $('input[name="url"]').val();
|
| 18 |
var notification_type =$('#notification_type').val();
|
- |
|
| 19 |
var messageText=$('#messageText').val();
|
- |
|
| 20 |
$('#sendsms').on('change', function(){
|
17 |
$('#showImage').on('change', function(){
|
| 21 |
this.value = this.checked ? true : false;
|
18 |
this.value = this.checked ? true : false;
|
| 22 |
}).change();
|
19 |
}).change();
|
| 23 |
|
20 |
|
| 24 |
|
21 |
|
| 25 |
|
22 |
|
| Line 64... |
Line 61... |
| 64 |
var notificationData ={};
|
61 |
var notificationData ={};
|
| 65 |
notificationData['userIds'] =$('#fofo-users').val();
|
62 |
notificationData['userIds'] =$('#fofo-users').val();
|
| 66 |
notificationData['campaignName'] = $('input[name="campaignName"]').val();
|
63 |
notificationData['campaignName'] = $('input[name="campaignName"]').val();
|
| 67 |
notificationData['title']=$('input[name="title"]').val();
|
64 |
notificationData['title']=$('input[name="title"]').val();
|
| 68 |
notificationData['message']=$('#message').val();
|
65 |
notificationData['message']=$('#message').val();
|
| 69 |
notificationData['longNotificationtext']=$('#longNotificationtext').val();
|
- |
|
| 70 |
notificationData['imageUrl']=$('input[name="imageUrl"]').val();
|
66 |
notificationData['imageUrl']=$('input[name="imageUrl"]').val();
|
| 71 |
notificationData['type']=$('#type').val();
|
67 |
notificationData['type']=$('#type').val();
|
| 72 |
notificationData['url']=$('input[name="url"]').val();
|
68 |
notificationData['url']=$('input[name="url"]').val();
|
| 73 |
notificationData['expiresat']=startDate;
|
69 |
notificationData['expiresat']=startDate;
|
| 74 |
notificationData['sendsms']=$('input[name="sendsms"]').val();
|
70 |
notificationData['showImage']=$('input[name="showImage"]').val();
|
| 75 |
notificationData['notification_type']=$('#notification_type').val();
|
- |
|
| 76 |
notificationData['messageText']=$('#messageText').val();
|
- |
|
| 77 |
console.log(notificationData)
|
71 |
console.log(notificationData)
|
| 78 |
|
72 |
|
| 79 |
if(confirm("Are you sure you want to send notification!") == true){
|
73 |
if(confirm("Are you sure you want to send notification!") == true){
|
| 80 |
doPostAjaxRequestWithJsonHandler(context+"/sendNotification", JSON.stringify(notificationData), function(response){
|
74 |
doPostAjaxRequestWithJsonHandler(context+"/sendNotification", JSON.stringify(notificationData), function(response){
|
| 81 |
if (response == 'true') {
|
75 |
if (response == 'true') {
|