Subversion Repositories SmartDukaan

Rev

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

Rev 16013 Rev 16018
Line 753... Line 753...
753
	$('[data-toggle="popover"]#'+id).popover({'html':true});
753
	$('[data-toggle="popover"]#'+id).popover({'html':true});
754
	$('[data-toggle="popover"]#'+id).trigger('click');		
754
	$('[data-toggle="popover"]#'+id).trigger('click');		
755
}
755
}
756
$(document).on('click','.nodeals',function(){
756
$(document).on('click','.nodeals',function(){
757
	document.location = $(this).data('href');
757
	document.location = $(this).data('href');
758
})
758
});
-
 
759
$(document).on('click','.selectbrand',function(e){
-
 
760
	e.preventDefault();
-
 
761
	var brands = $(this).data('id');
-
 
762
	var brandname = $(this).html();
-
 
763
	console.log(brandname);
-
 
764
	setCookie('brandschosen', brands, 1, true);
-
 
765
	var url = $(this).data('href');
-
 
766
	ga('send', 'event', 'selectbrand', 'brand', brandname);
-
 
767
	properties = {};
-
 
768
	properties['brand'] = brandname;
-
 
769
	pma.send('filters','brands','selectbrand',me,properties);
-
 
770
	var postdata = {'user_id':me,'type':'brand','filters':brandname};
-
 
771
	$.post( "/user_filters/add", postdata, function( data ) {
-
 
772
		$('#loadingModal').modal('hide');
-
 
773
		$(this).addClass('activebrand');
-
 
774
  		document.location = url+'&brands='+brands;
-
 
775
	});
-
 
776
});
759
var Base64 = {
777
var Base64 = {
760
    _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
778
    _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
761
    encode: function(input) {
779
    encode: function(input) {
762
        var output = "";
780
        var output = "";
763
        var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
781
        var chr1, chr2, chr3, enc1, enc2, enc3, enc4;