Subversion Repositories SmartDukaan

Rev

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

Rev 20753 Rev 20758
Line 452... Line 452...
452
                window.location = redirect_url;
452
                window.location = redirect_url;
453
            }
453
            }
454
            });
454
            });
455
    });
455
    });
456
    
456
    
457
    var clickActionTimeout = null;
-
 
458
	function clearClickActionTimeout() {
-
 
459
	  if(clickActionTimeout) {
-
 
460
	    clearTimeout(clickActionTimeout);
-
 
461
	    clickActionTimeout = null;
-
 
462
	  }
-
 
463
	}
-
 
464
    
-
 
465
    $(document).on('click','.viewproduct',function(e){
457
    $(document).on('click','.viewproduct',function(e){
466
    e.preventDefault();
-
 
467
  	clearClickActionTimeout();
-
 
468
  	clickActionTimeout = setTimeout(function() {
-
 
469
    localStorage.pages = $('div.scrollselector').html();
458
		localStorage.pages = $('div.scrollselector').html();
470
		setCookie('fresh', "0", .1, true);
459
		setCookie('fresh', "0", .1, true);
471
        var proid = $(this).data("proid");
460
        var proid = $(this).data("proid");
472
        var identifier = $(this).data("identifier");
461
        var identifier = $(this).data("identifier");
473
        
462
        
474
        if(typeof livePriceCalls != undefined) {
463
        if(typeof livePriceCalls != undefined) {
Line 554... Line 543...
554
        properties.sku = String($(this).data('id'));
543
        properties.sku = String($(this).data('id'));
555
        properties.source = String($(this).data('source'));
544
        properties.source = String($(this).data('source'));
556
        properties.url = encodeURIComponent($(this).data('url'));
545
        properties.url = encodeURIComponent($(this).data('url'));
557
        properties.price = String($(this).data('price'));
546
        properties.price = String($(this).data('price'));
558
        pma.send('products','url','click',me,properties);
547
        pma.send('products','url','click',me,properties);
559
  		}, 200);
-
 
560
    });
548
    });
561
    $(document).on('click','.likeit',function(e){   
549
    $(document).on('click','.likeit',function(e){   
562
        var that = $(this);
550
        var that = $(this);
563
        if($(that).find('span.likedeal').hasClass('active')){
551
        if($(that).find('span.likedeal').hasClass('active')){
564
            //User has already liked it,so remove like
552
            //User has already liked it,so remove like