Subversion Repositories SmartDukaan

Rev

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

Rev 18311 Rev 18328
Line 1... Line 1...
1
<script>
1
<script>
2
	$(document).ready(function(){
2
	$(document).ready(function(){
3
	$('.seeproduct').click(function(){
3
	$('.seeproduct').click(function(){
-
 
4
		$('#loadingModal').modal();
4
		var proid = $(this).data("id");
5
		var proid = $(this).data("id");
5
		var identifier = $(this).data("identifier");
6
		var identifier = $(this).data("identifier");
6
		var urll = apihost+"categories/saholicdeal/"+proid;
7
		var urll = apihost+"categories/saholicdeal/"+proid;
7
		$.ajax({
8
		$.ajax({
8
	        method: "GET",
9
	        method: "GET",
Line 10... Line 11...
10
	    },'json')
11
	    },'json')
11
	    .done(function(msg){
12
	    .done(function(msg){
12
	    	if (typeof(Storage) !== "undefined") {
13
	    	if (typeof(Storage) !== "undefined") {
13
	        	localStorage.removeItem("productdetail");
14
	        	localStorage.removeItem("productdetail");
14
				localStorage.setItem("productdetail",msg);
15
				localStorage.setItem("productdetail",msg);
-
 
16
				document.location = apihost+"categories/dealdetail/"+identifier;
15
	    	}
17
	    	}
16
	    });
18
	    });
17
		
19
		
18
		document.location = apihost+"categories/dealdetail/"+identifier;
-
 
-
 
20
		
19
		});
21
		});
20
	});
22
	});
21
</script>
23
</script>
22
 
24
 
23
<style>
25
<style>