Subversion Repositories SmartDukaan

Rev

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

Rev 5358 Rev 5420
Line 50... Line 50...
50
				trackEventWithGA('Widget', 'Empty Cart Message Show', '');
50
				trackEventWithGA('Widget', 'Empty Cart Message Show', '');
51
			}
51
			}
52
    	});
52
    	});
53
	});
53
	});
54
 
54
 
55
	$('.common-widget-top-bar').live('click', function(){
55
	$('.common-widget-top-bar').live('click', function(e, callback){
56
		var isColapsed = $(this).data('is_colapsed') == true ? true : false;
56
		var isColapsed = $(this).data('is_colapsed') == true ? true : false;
57
		var widgetBox = $(this).siblings('.common-widget-content-area');
57
		var widgetBox = $(this).siblings('.common-widget-content-area');
58
		var controlBox = $(this).siblings('.common-widget-control-bar');
58
		var controlBox = $(this).siblings('.common-widget-control-bar');
59
		var controlBoxArrowImg = $(this).find('img');
59
		var controlBoxArrowImg = $(this).find('img');
60
		
60
		
61
		if (isColapsed)	{
61
		if (isColapsed)	{
62
			if(controlBox.length > 0)	{
62
			if(controlBox.length > 0)	{
63
				$(controlBox).slideDown('fast', function(){
63
				$(controlBox).slideDown('fast', function(){
64
					$(widgetBox).slideDown();
64
					$(widgetBox).slideDown('fast', callback);
65
					$(controlBoxArrowImg).attr('src', '/images/IconDownArrow_UnselectedTab.png');
65
					$(controlBoxArrowImg).attr('src', '/images/IconDownArrow_UnselectedTab.png');
66
				});
66
				});
67
			} else	{
67
			} else	{
68
				$(widgetBox).slideDown();
68
				$(widgetBox).slideDown();
69
				$(controlBoxArrowImg).attr('src', '/images/IconDownArrow_UnselectedTab.png');
69
				$(controlBoxArrowImg).attr('src', '/images/IconDownArrow_UnselectedTab.png');