Support dynamic switch between disciplines and subdisciplines of the slider text.

This commit is contained in:
kongchinhua 2012-07-06 15:14:59 +00:00
parent 550bf0f0dc
commit 175ece8999
3 changed files with 11 additions and 1 deletions

View file

@ -250,6 +250,7 @@ var ComparisonScimapWidget = Class.extend({
if (compositeManager) {
var length = compositeManager.length();
var slider = this.sliderControl;
slider.setTypeString("subdisciplines");
slider.setMin(Math.min(1, length));
slider.setMax(length);
slider.setValue(length);