Subversion Repositories SmartDukaan

Rev

Rev 5941 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5941 Rev 5982
Line 27... Line 27...
27
    $('.product-name').width(newWidth);
27
    $('.product-name').width(newWidth);
28
    $('.comparision-product-column').width(newWidth);
28
    $('.comparision-product-column').width(newWidth);
29
  }
29
  }
30
 
30
 
31
  $('.ui-state-default').click(function(){
31
  $('.ui-state-default').click(function(){
32
	  if(api){
32
	  if(typeof api !== 'undefined'){
33
		  api.destroy();
33
		  api.destroy();
34
	  }
34
	  }
35
    var aID = $("li.ui-state-active").children('a:first').attr('href');
35
    var aID = $("li.ui-state-active").children('a:first').attr('href');
36
    var array = aID.split("#");
36
    var array = aID.split("#");
37
    var displayID = array[1];
37
    var displayID = array[1];
Line 79... Line 79...
79
    maxHeight = Math.max(maxHeight + 10, $(".comparision-product-column").height());
79
    maxHeight = Math.max(maxHeight + 10, $(".comparision-product-column").height());
80
    rightHeight = maxHeight + 177;
80
    rightHeight = maxHeight + 177;
81
    var leftHeight =  $("#sideNav").height() + 25;
81
    var leftHeight =  $("#sideNav").height() + 25;
82
 
82
 
83
    adjustHeights(Math.max(leftHeight, rightHeight));
83
    adjustHeights(Math.max(leftHeight, rightHeight));
84
    if(pane){
84
    if(typeof pane !== 'undefined'){
85
    	pane = $(selector).jScrollPane({showArrows:true});
85
    	pane = $(selector).jScrollPane({showArrows:true});
86
    	api = pane.data('jsp');
86
    	api = pane.data('jsp');
87
    }
87
    }
88
    return false;
88
    return false;
89
  });
89
  });