| Line 418... |
Line 418... |
| 418 |
properties.source = String($(this).data('source'));
|
418 |
properties.source = String($(this).data('source'));
|
| 419 |
properties.url = encodeURIComponent($(this).data('url'));
|
419 |
properties.url = encodeURIComponent($(this).data('url'));
|
| 420 |
properties.price = String($(this).data('price'));
|
420 |
properties.price = String($(this).data('price'));
|
| 421 |
pma.send('products','url','click',me,properties);
|
421 |
pma.send('products','url','click',me,properties);
|
| 422 |
});
|
422 |
});
|
| 423 |
$('.jscroll-inner').on('click','.likeit',function(e){
|
423 |
$(document).on('click','.likeit',function(e){
|
| 424 |
var that = $(this);
|
424 |
var that = $(this);
|
| 425 |
if($(that).find('span.likedeal').hasClass('active')){
|
425 |
if($(that).find('span.likedeal').hasClass('active')){
|
| 426 |
//User has already liked it,so remove like
|
426 |
//User has already liked it,so remove like
|
| 427 |
var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/like";
|
427 |
var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/like";
|
| 428 |
}else{
|
428 |
}else{
|
| Line 470... |
Line 470... |
| 470 |
});
|
470 |
});
|
| 471 |
$('#myModal').modal('hide');
|
471 |
$('#myModal').modal('hide');
|
| 472 |
ga('send', 'event', 'brand', 'hide', $('#myModal').find('#productToHide',0).val());
|
472 |
ga('send', 'event', 'brand', 'hide', $('#myModal').find('#productToHide',0).val());
|
| 473 |
pma.send('brands','hide',$('#myModal').find('#productToHide',0).val(),me);
|
473 |
pma.send('brands','hide',$('#myModal').find('#productToHide',0).val(),me);
|
| 474 |
})
|
474 |
})
|
| 475 |
$('.jscroll-inner').on('click','.dislikeit',function(e){
|
475 |
// $('.jscroll-inner').on('click','.dislikeit',function(e){
|
| - |
|
476 |
$(document).on('click','.dislikeit',function(e){
|
| 476 |
var that = $(this);
|
477 |
var that = $(this);
|
| 477 |
if($(that).find('span.dislikedeal').hasClass('active')){
|
478 |
if($(that).find('span.dislikedeal').hasClass('active')){
|
| 478 |
//User has already liked it,so remove like
|
479 |
//User has already liked it,so remove like
|
| 479 |
var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";
|
480 |
var url = apihost+"/user_actions/rem/"+me+"/"+$(this).data('id')+"/dislike";
|
| 480 |
}else{
|
481 |
}else{
|
| Line 872... |
Line 873... |
| 872 |
$(this).prop('disabled',false);
|
873 |
$(this).prop('disabled',false);
|
| 873 |
document.location = url+'&brands='+brands.join('^');
|
874 |
document.location = url+'&brands='+brands.join('^');
|
| 874 |
});
|
875 |
});
|
| 875 |
}*/
|
876 |
}*/
|
| 876 |
});
|
877 |
});
|
| - |
|
878 |
|
| - |
|
879 |
|
| 877 |
$(document).on('click','#showallbrands',function(){
|
880 |
$(document).on('click','#showallbrands',function(){
|
| 878 |
$('.hidden').removeClass('hidden');
|
881 |
$('.brand').removeClass('hidden');
|
| - |
|
882 |
$('.subcategory').removeClass('hidden');
|
| 879 |
$(this).hide();
|
883 |
$(this).hide();
|
| 880 |
});
|
884 |
});
|
| 881 |
$(document).on('input','#brandfilter',function(){
|
885 |
$(document).on('input','#brandfilter',function(){
|
| 882 |
$('.brand').addClass('hidden');
|
886 |
$('.brand').addClass('hidden');
|
| 883 |
$('#showallbrands').hide();
|
887 |
$('#showallbrands').hide();
|