Subversion Repositories SmartDukaan

Rev

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

Rev 18066 Rev 18115
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($('.scroll > .card').length>0) {
65
	if($('.scrollselector > .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
			console.log("jscroll called");
68
			$('.scroll').jscroll({
69
			$('.scrollselector').jscroll({
69
				loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
70
				loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
70
			    autoTriggerUntil: 3,
71
			    autoTriggerUntil: 3,
71
			    padding: 20,
72
			    padding: 20,
72
			    callback:loadCartDetails
73
			    callback:loadCartDetails
73
			});
74
			});
Line 1000... Line 1001...
1000
function showPosition(position) {
1001
function showPosition(position) {
1001
    setCookie('latitude',position.coords.latitude,1,true); 
1002
    setCookie('latitude',position.coords.latitude,1,true); 
1002
    setCookie('longitude',position.coords.longitude,1,true);	
1003
    setCookie('longitude',position.coords.longitude,1,true);	
1003
}
1004
}
1004
$(function () {
1005
$(function () {
-
 
1006
	$("#popovertrigger5").popover('hide').remove();
1005
	$('.data-up:first').append('<a id="popovertrigger5"  data-container="body" data-toggle="popover" data-placement="left" data-content="Quick buy multiple items together"></a>');
1007
	$('.data-up:first').append('<a id="popovertrigger5"  data-container="body" data-toggle="popover" data-placement="left" data-content="Quick buy multiple items together"></a>');
-
 
1008
	setPopOver("popovertrigger5", ".plusqtybutton", 'click');
1006
	callBackFunction = function(){
1009
	callBackFunction = function(){
1007
		return document.location.pathname=="/category/6";		
1010
		return document.location.pathname=="/category/6";		
1008
	};
1011
	};
1009
	setPopOver("popovertrigger4", callBackFunction);
1012
	setPopOver("popovertrigger4", callBackFunction);
1010
	setPopOver("popovertrigger5", ".plusqtybutton", 'click');
1013
	//$('[data-toggle="popover"]#'+id).popover('show');
1011
	if (navigator.geolocation) {
1014
	if (navigator.geolocation) {
1012
        navigator.geolocation.getCurrentPosition(showPosition);
1015
        navigator.geolocation.getCurrentPosition(showPosition);
1013
    } 
1016
    } 
1014
});
1017
});
1015
 
1018