Subversion Repositories SmartDukaan

Rev

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

Rev 16721 Rev 16730
Line 15... Line 15...
15
    $('span.stars').stars();
15
    $('span.stars').stars();
16
	$('.getapp').on('click',function(e){
16
	$('.getapp').on('click',function(e){
17
		console.log(e);
17
		console.log(e);
18
		var that = $(this);
18
		var that = $(this);
19
		var req = $.ajax({
19
		var req = $.ajax({
20
			url: 'http://104.200.25.40:8057/appAffiliates/generateRedirectUrl/'+$(that).data('me')+'/'+$(that).data('id'),
20
			url: apihost+'appAffiliates/generateRedirectUrl/'+$(that).data('me')+'/'+$(that).data('id'),
21
			// Tell jQuery we're expecting JSONP
21
			// Tell jQuery we're expecting JSONP
22
			dataType: "jsonp",
22
			dataType: "jsonp",
23
			// Tell YQL what we want and that we want JSON			
23
			// Tell YQL what we want and that we want JSON			
24
			method: 'get',
24
			method: 'get',
25
			// timeout: 30000,
25
			// timeout: 30000,
Line 29... Line 29...
29
					document.location = response.url;
29
					document.location = response.url;
30
				}
30
				}
31
			}
31
			}
32
		},'json');
32
		},'json');
33
	});
33
	});
34
});
-
 
35
34
});
-
 
35