Subversion Repositories SmartDukaan

Rev

Rev 19127 | Rev 19213 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19127 Rev 19201
Line 40... Line 40...
40
// 		e.value="no";
40
// 		e.value="no";
41
// 		location.reload();}
41
// 		location.reload();}
42
// 	}
42
// 	}
43
	$(document).ready(function(){
43
	$(document).ready(function(){
44
// 		$('#loadModal').modal('show');
44
// 		$('#loadModal').modal('show');
45
			$('.notifi a').click(function(){
45
			$('.notifi').click(function(){
-
 
46
				var cid = $(this).data('cid');
-
 
47
				var url = $(this).data('url');
-
 
48
				alert(cid);
46
				
49
				alert(url);
47
				$('#loadModal').modal('show');
50
// 				$('#loadModal').modal('show');
-
 
51
				 $.ajax({
-
 
52
                  method: "GET",
-
 
53
                  url:  "<?php echo $base_url;?>users/sendseen"+cid,
-
 
54
	              },'json')
-
 
55
	              .done(function(msg){
-
 
56
							alert(msg);
-
 
57
							window.location  = url;
-
 
58
						});
48
				});
59
				});
49
// 			$('.notifi').click(function(){
60
// 			$('.notifi').click(function(){
50
// 				if($(this).hasClass('notifi')){
61
// 				if($(this).hasClass('notifi')){
51
// 					$(this).removeClass('unseen');
62
// 					$(this).removeClass('unseen');
52
// 				}
63
// 				}