js/controls/sliders/slider/slider.js in rsence-2.2.2 vs js/controls/sliders/slider/slider.js in rsence-2.2.3
- old
+ new
@@ -287,11 +287,11 @@
this.setOrientation(this.options['orientation']||this.prevOrientation);
},
prevOrientation: 'c',
- cssClassPrefix: 'h',
+ orientations: ['n','s','c'],
/** = Description
* Changes the thumb graphic. Possible orientations by default are
* north ('n'), south ('s'), west ('w'), east('e') and center ('c').
* Defaults to 'c'. No case sensitivity.
@@ -314,20 +314,19 @@
if(this.markupElemIds['control']===undefined){
return;
}
var _toggleCSS = this.toggleCSSClass,
_ctrlId = this.markupElemIds.control,
- _orientations = ['n','s','w','e','c'],
+ _orientations = this.orientations,
_iOrientation = '',
_cssClassName = '',
- _cssClassPrefix = this.cssClassPrefix,
- _cssClassVert = this._isVertical?'v':'',
+ _componentName = this.componentName,
_activeOrientation = false,
i = 0;
- for(;i<5;i++){
+ for(;i<3;i++){
_iOrientation = _orientations[i];
_activeOrientation = (_orientation===_iOrientation);
- _cssClassName = (_orientation==='c')?_cssClassPrefix+_cssClassVert+'slider_thumb':_cssClassPrefix+'slider_thumb_'+_iOrientation;
+ _cssClassName = (_orientation==='c')?_componentName+'_thumb':_componentName+'_thumb_'+_iOrientation;
_toggleCSS( _ctrlId, _cssClassName, _activeOrientation );
}
this.prevOrientation = _orientation;
}