Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #48 from EmicoEcommerce/issue/109466-slider-click
Browse files Browse the repository at this point in the history
Slider update to change price filter value before updating
  • Loading branch information
edwinljacobs authored Jul 10, 2019
2 parents 173dac2 + d72d115 commit 489e0cc
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions skin/frontend/base/default/emico_tweakwise/js/AttributeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,13 @@ TweakwiseAttributeSlider.prototype = {
restricted: true,
onSlide: function(value)
{
this.setValue(
this.filterAssign(this.filterDisplayLower(value[0])),
this.filterAssign(this.filterDisplayUpper(value[1]))
);
this.updateInputValue();
this.updateLinkValue();
this.setValue.bind(this)
this.updateSlider(value);
}.bind(this),
onChange: function(value)
{
if(this.initialized)
{
this.updateSlider(value);
this.getUpdateLink().simulate('click');
}
}.bind(this)
Expand All @@ -187,6 +182,17 @@ TweakwiseAttributeSlider.prototype = {
return this.slider;
},

updateSlider: function(value)
{
this.setValue(
this.filterAssign(this.filterDisplayLower(value[0])),
this.filterAssign(this.filterDisplayUpper(value[1]))
);
this.updateInputValue();
this.updateLinkValue();
this.setValue.bind(this);
},

/** object methods **/
intValue: function(value, boundValue)
{
Expand Down

0 comments on commit 489e0cc

Please sign in to comment.