Subversion Repositories SmartDukaan

Rev

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

Rev 20967 Rev 20968
Line 384... Line 384...
384
});
384
});
385
 
385
 
386
$(document).on('click','#bottomNav',function(){
386
$(document).on('click','#bottomNav',function(){
387
	$('#loadingModal').modal('show');
387
	$('#loadingModal').modal('show');
388
	var url = apihost + 'cartdetails/?user_id='+me;
388
	var url = apihost + 'cartdetails/?user_id='+me;
389
    var 	 = $('<form>', {
389
    var newForm = $('<form>', {
390
        'action': url,
390
        'action': url,
391
        'method':'post'
391
        'method':'post'
392
    }).append($('<input>', {
392
    }).append($('<input>', {
393
        'name': 'cart_details',
393
        'name': 'cart_details',
394
        'value': localStorage.getItem('cart_details'),
394
        'value': localStorage.getItem('cart_details'),
395
        'type': 'hidden'
395
        'type': 'hidden'
396
    }));
396
    }));
397
    newForm.appendTo($('body'));
397
    newForm.appendTo($('body'))
398
    newForm.submit();
398
    newForm.submit();
399
});
399
});
400
 
400
 
401
function numberWithCommas(x) {
401
function numberWithCommas(x) {
402
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
402
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");