Subversion Repositories SmartDukaan

Rev

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

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