Subversion Repositories SmartDukaan

Rev

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

Rev 15925 Rev 15926
Line 9... Line 9...
9
	}else if(type==1){
9
	}else if(type==1){
10
		return ' +'+value+'% Cashback';
10
		return ' +'+value+'% Cashback';
11
	}else{
11
	}else{
12
		return '';
12
		return '';
13
	}
13
	}
14
}
14
};
-
 
15
function showShopcluesPopup(url){
-
 
16
	$('#shopcluesUrl').prop('href',url);
-
 
17
	$('#shopcluesModal').modal('show');
-
 
18
	return;
15
 
19
};
16
$(function(){	
20
$(function(){	
17
	if($('.scroll > .card').length>0) {
21
	if($('.scroll > .card').length>0) {
18
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
22
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
19
		$('.scroll').jscroll({
23
		$('.scroll').jscroll({
20
			loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
24
			loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
Line 39... Line 43...
39
	function sortByKey(array, key) {
43
	function sortByKey(array, key) {
40
	    return array.sort(function(a, b) {
44
	    return array.sort(function(a, b) {
41
	        var x = a[key]; var y = b[key];
45
	        var x = a[key]; var y = b[key];
42
	        return ((x < y) ? -1 : ((x > y) ? 1 : 0));
46
	        return ((x < y) ? -1 : ((x > y) ? 1 : 0));
43
	    });
47
	    });
44
	};	
48
	};		
45
	function showShopcluesPopup(url){
-
 
46
		$('#shopcluesUrl').prop('href',url);
-
 
47
		$('#shopcluesModal').modal('show');
-
 
48
		return;
-
 
49
	}
-
 
50
	function getCouponText(coupon){
49
	function getCouponText(coupon){
51
		return "<span class='red'>"+coupon+"</span>";
50
		return "<span class='red'>"+coupon+"</span>";
52
	}
51
	};
53
	function fetchLivePrice(obj){		
52
	function fetchLivePrice(obj){		
54
		ga('send', 'event', 'liveprice', 'fetch',$('#bestpriceproductname').html());
53
		ga('send', 'event', 'liveprice', 'fetch',$('#bestpriceproductname').html());
55
		var properties = {};
54
		var properties = {};
56
		properties.bundle_id = String($(obj).data('bundle_id'));
55
		properties.bundle_id = String($(obj).data('bundle_id'));
57
		properties.product_name = String($('#bestpriceproductname').html());
56
		properties.product_name = String($('#bestpriceproductname').html());