Subversion Repositories SmartDukaan

Rev

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

Rev 13731 Rev 13759
Line 7... Line 7...
7
	$('.categorytab').on('click','.categorytabcontrol.active',function(){
7
	$('.categorytab').on('click','.categorytabcontrol.active',function(){
8
		$(this).toggleClass('active');
8
		$(this).toggleClass('active');
9
		$('#preferences-'+$(this).data('id')).addClass('hidden');
9
		$('#preferences-'+$(this).data('id')).addClass('hidden');
10
		$(this).parent().parent().children().find('.savecategorypreferences',0).removeClass('savecategorypreferences').addClass('editcategorypreferences').html('Edit').removeClass('btn-success');
10
		$(this).parent().parent().children().find('.savecategorypreferences',0).removeClass('savecategorypreferences').addClass('editcategorypreferences').html('Edit').removeClass('btn-success');
11
	});
11
	});
-
 
12
	$('.categorytab').on('click','.categorytabcontrol:not(.active)',function(){
-
 
13
		$(this).parent().parent().find('.btn',0).click();
-
 
14
	});
12
	$('.categorytab').on('click','.editcategorypreferences',function(e){
15
	$('.categorytab').on('click','.editcategorypreferences',function(e){
13
		var that = $(this);
16
		var that = $(this);
14
		$(that).removeClass('editcategorypreferences').addClass('savecategorypreferences').html('Done').addClass('btn-success');
17
		$(that).removeClass('editcategorypreferences').addClass('savecategorypreferences').html('Done').addClass('btn-success');
15
		$('#togglepreferences-'+$(that).data('id')).toggleClass('active');
18
		$('#togglepreferences-'+$(that).data('id')).toggleClass('active');
16
		$('#preferences-'+$(that).data('id')).removeClass('hidden');
19
		$('#preferences-'+$(that).data('id')).removeClass('hidden');
Line 192... Line 195...
192
				$(that).hide();
195
				$(that).hide();
193
			}
196
			}
194
		});
197
		});
195
		ga('send', 'event', 'favourites', 'removeall', me);
198
		ga('send', 'event', 'favourites', 'removeall', me);
196
	});
199
	});
-
 
200
	$('.revealbrands').on('click',function(){
-
 
201
		$(this).parent().find('.notfeatured').toggleClass('hidden');
-
 
202
		if($(this).html()=='Others'){
-
 
203
			$(this).html('Hide');
-
 
204
		}else{
-
 
205
			$(this).html('Others');
-
 
206
		}
-
 
207
	});
197
});
208
});
198
209