Subversion Repositories SmartDukaan

Rev

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

Rev 14215 Rev 14300
Line 258... Line 258...
258
		ga('send', 'event', 'favourites', 'remove', $(this).data('id'));
258
		ga('send', 'event', 'favourites', 'remove', $(this).data('id'));
259
	});
259
	});
260
	$('.clearfavs').on('click',function(){
260
	$('.clearfavs').on('click',function(){
261
		var that = $(this);
261
		var that = $(this);
262
		$('#loadingModal').modal();
262
		$('#loadingModal').modal();
263
		var url = apihost+"/user_actions/deleteallfavs/"+me;			
263
		var url = apihost+"/user_actions/deleteallfavs/"+me+'/'+$(this).data('type');			
264
		$.ajax({
264
		$.ajax({
265
			url: url,
265
			url: url,
266
			// The name of the callback parameter, as specified by the YQL service
266
			// The name of the callback parameter, as specified by the YQL service
267
			jsonp: "callback",
267
			jsonp: "callback",
268
			// Tell jQuery we're expecting JSONP
268
			// Tell jQuery we're expecting JSONP
Line 318... Line 318...
318
	});
318
	});
319
	$(document).on('click','.hasmoretext',function(){
319
	$(document).on('click','.hasmoretext',function(){
320
		$('#fulltext').html($(this).data('fulltext'));
320
		$('#fulltext').html($(this).data('fulltext'));
321
		$('#fullTextModal').modal();
321
		$('#fullTextModal').modal();
322
	});
322
	});
-
 
323
	$(document).on('click','.favswitch',function(){
-
 
324
		$('.favswitch').removeClass('active')
-
 
325
		$(this).addClass('active');
-
 
326
		$('.clearfavs').addClass('hidden');
-
 
327
		$('.card').addClass('hidden');
-
 
328
		$('.'+$(this).data('type')).removeClass('hidden');
-
 
329
	});
323
});
330
});