| Line 30... |
Line 30... |
| 30 |
$(function(){
|
30 |
$(function(){
|
| 31 |
$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
|
31 |
$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
|
| 32 |
$('.notificationUrl').prop('href','<?php echo $url;?>');
|
32 |
$('.notificationUrl').prop('href','<?php echo $url;?>');
|
| 33 |
if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
|
33 |
if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
|
| 34 |
$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});
|
34 |
$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});
|
| - |
|
35 |
var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
|
| - |
|
36 |
$.post( "/notification_views/add", postdata, function( data ) {});
|
| 35 |
ga('send', 'event', 'popupnotification', 'shown', me);
|
37 |
ga('send', 'event', 'popupnotification', 'shown', me);
|
| - |
|
38 |
var properties = {};
|
| - |
|
39 |
properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
|
| - |
|
40 |
pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);
|
| 36 |
}
|
41 |
}
|
| 37 |
});
|
42 |
});
|
| 38 |
</script>
|
43 |
</script>
|
| 39 |
</div>
|
44 |
</div>
|
| 40 |
<?php endif;?>
|
45 |
<?php endif;?>
|