Subversion Repositories SmartDukaan

Rev

Rev 19215 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19038 naman 1
<style>
19127 naman 2
	.notifi a:hover{
19314 naman 3
/* 		color : black; */
19127 naman 4
	}
5
 
19038 naman 6
	.unseen {
19103 naman 7
/* 		color:#54D199; */
19314 naman 8
		background:#F2FFEC;
19038 naman 9
	}
19106 naman 10
	.seen {
19100 naman 11
/* 		background:#f8f8f8; */
19314 naman 12
/* 		color:#828181; */
19038 naman 13
	}
19106 naman 14
	.expired{
15
		color:#BBB9B9;
16
	}
19038 naman 17
	.text{
18
		font-weight : bold;
19
	}
20
	.expiredtext{
21
		font-size : 10px;
22
	}
19100 naman 23
	.notirow{
24
		background-color: white;
25
		margin: 5px 0 0 0;
26
		padding: 5px 5px 0 5px;
27
		position:relative;
28
		min-height: 30px;
29
	}
19038 naman 30
</style>
31
 
32
<script>
19314 naman 33
$(document).on('click','#go_back',function(){
34
	window.history.back();
35
});
19127 naman 36
// onload=function(){
37
// 	var e=document.getElementById("refreshed");
38
// 	if(e.value=="no"){
39
// 		e.value="yes";
40
// 		$('.notilist').removeClass('hidden');
41
// 		$('#loadModal').modal('hide');
42
// 	}
43
// 	else{
44
// 		e.value="no";
45
// 		location.reload();}
46
// 	}
19038 naman 47
	$(document).ready(function(){
19314 naman 48
 
19201 naman 49
			$('.notifi').click(function(){
19314 naman 50
				$('#loadModal').modal('show');
19201 naman 51
				var cid = $(this).data('cid');
52
				var url = $(this).data('url');
19213 manas 53
				var urlType = $(this).data('notificationtype');
54
				if(urlType!="expired"){
55
	// 				$('#loadModal').modal('show');
56
					 $.ajax({
57
	                  method: "GET",
58
	                  url:  "<?php echo $base_url;?>users/sendseen/"+cid,
59
		              },'json')
19215 manas 60
		              .done(function(msg){								
19213 manas 61
								window.location  = url;
62
							});
63
		          	}
19118 naman 64
				});
65
// 			$('.notifi').click(function(){
66
// 				if($(this).hasClass('notifi')){
67
// 					$(this).removeClass('unseen');
68
// 				}
19100 naman 69
 
19118 naman 70
// 				 $.ajax({
71
//                      method: "POST",
72
 //                    url:  "<?php //echo $base_url;?>users/sendseen",
73
//                  },'json')
74
//                  .done(function(msg){
75
 
76
// 					});
77
// 			});
78
 
19314 naman 79
 
19106 naman 80
 
19100 naman 81
			if($('.cscrollselector > .card').length>0) {
82
                    $('.cscrollselector').jscroll({
83
                        loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
84
                        autoTriggerUntil: 3,
85
                        padding: 20
86
                    });
87
                }
88
 
19038 naman 89
		});
90
</script>
91
 
19118 naman 92
<div class="modal fade" id="loadModal">
93
  <div class="modal-dialog">
94
    <div class="modal-content">      
95
      <div class="modal-body">
96
        <div class="text-center" id='content-add'>
97
            <img src="/img/ajax-loader.gif" alt="Loading" />
98
        </div>        
99
      </div>      
100
    </div><!-- /.modal-content -->
101
  </div><!-- /.modal-dialog -->
102
</div>
103
 
19127 naman 104
<!-- <input type="hidden" id="refreshed" value="no"> -->
105
<div id= "go_back" class= "cartpagedetails" style="z-index:5;padding:5px;font-size: 15px;">    
19314 naman 106
    	<b>Notifications</b>
19106 naman 107
</div>
19314 naman 108
<div class = "container notilist" style="margin-top:25px;">
19106 naman 109
 
19100 naman 110
	<div class="row scroll cscrollselector" >
111
		<?php echo $this->element('getnotification');?>	
112
	</div>
113
</div>
114
 
115
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>