Subversion Repositories SmartDukaan

Rev

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

Rev 19175 Rev 19244
Line 60... Line 60...
60
    $('#homeShop18Modal').modal('show');
60
    $('#homeShop18Modal').modal('show');
61
    return;
61
    return;
62
};
62
};
63
 
63
 
64
$(function(){   
64
$(function(){   
65
    if($('.scrollselector > .card').length>0) {
65
    if($('div.scrollselector').find('.card').length>0) {
66
        setTimeout(function(){ document.location.reload(); }, 1000*15*60);
66
        setTimeout(function(){ document.location.reload(); }, 1000*15*60);
67
        if(typeof noscrolling == 'undefined') {
67
        if(typeof noscrolling == 'undefined') {
68
            $('.scrollselector').jscroll({
68
            $('.scrollselector').jscroll({
69
                loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
69
                loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
70
                autoTriggerUntil: 3,
70
                autoTriggerUntil: 3,
Line 403... Line 403...
403
        pma.send('preferences', 'update', 'set', me, properties);
403
        pma.send('preferences', 'update', 'set', me, properties);
404
    });
404
    });
405
    
405
    
406
    
406
    
407
    $(document).on('click','.accsproduct',function(){
407
    $(document).on('click','.accsproduct',function(){
-
 
408
    	setCookie('fresh', "0", .1, true);
408
        if (typeof(Storage) !== "undefined") {
409
        if (typeof(Storage) !== "undefined") {
-
 
410
        	localStorage.pages = $('div.scrollselector').html();
409
            localStorage.removeItem("productdetail");
411
            localStorage.removeItem("productdetail");
410
            localStorage.setItem("productdetail", $(this).closest(".card").html());
412
            localStorage.setItem("productdetail", $(this).closest(".card").html());
411
        }
413
        }
412
        $('#loadingModal').modal();
414
        $('#loadingModal').modal();
413
        var redirect_url = $(this).data('url');
415
        var redirect_url = $(this).data('url');
Line 438... Line 440...
438
            }
440
            }
439
            });
441
            });
440
    });
442
    });
441
    
443
    
442
    $(document).on('click','.viewproduct',function(e){
444
    $(document).on('click','.viewproduct',function(e){
443
 
-
 
-
 
445
		localStorage.pages = $('div.scrollselector').html();
-
 
446
		setCookie('fresh', "0", .1, true);
444
        var proid = $(this).data("proid");
447
        var proid = $(this).data("proid");
445
        var identifier = $(this).data("identifier");
448
        var identifier = $(this).data("identifier");
446
        
449
        
447
        if(typeof livePriceCalls != undefined) {
450
        if(typeof livePriceCalls != undefined) {
448
            for(var i in livePriceCalls){
451
            for(var i in livePriceCalls){