Subversion Repositories SmartDukaan

Rev

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

Rev 19213 Rev 19215
Line 44... Line 44...
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
				var urlType = $(this).data('notificationtype');
49
				alert(urlType);
-
 
50
				if(urlType!="expired"){
49
				if(urlType!="expired"){
51
	// 				$('#loadModal').modal('show');
50
	// 				$('#loadModal').modal('show');
52
					 $.ajax({
51
					 $.ajax({
53
	                  method: "GET",
52
	                  method: "GET",
54
	                  url:  "<?php echo $base_url;?>users/sendseen/"+cid,
53
	                  url:  "<?php echo $base_url;?>users/sendseen/"+cid,
55
		              },'json')
54
		              },'json')
56
		              .done(function(msg){
55
		              .done(function(msg){								
57
								alert(msg);
-
 
58
								window.location  = url;
56
								window.location  = url;
59
							});
57
							});
60
		          	}
58
		          	}
61
				});
59
				});
62
// 			$('.notifi').click(function(){
60
// 			$('.notifi').click(function(){