Skip to content

Instantly share code, notes, and snippets.

@Ozerich
Created March 17, 2016 15:54
Show Gist options
  • Save Ozerich/7d7ea63b475da54ae278 to your computer and use it in GitHub Desktop.
Save Ozerich/7d7ea63b475da54ae278 to your computer and use it in GitHub Desktop.
CalcAnimation.Init();
CalcAnimation.SetRange(1, 200);
ob.find(".slider_0").slider({
value: showProgStep(minVklad[curVal], programData.currency[curVal].max, programData.currency[curVal].initSumm),
min: 1,
max: 200,
step: 1,
range: "min",
slide: function (event, ui) {
ob.find('.sum_0').val(addNbsp(showProgSumm(minVklad[curVal], programData.currency[curVal].max, ui.value)));
CalcAnimation.SetValue(ui.value);
CalcAnimation.FireSlide();
},
change: function(event, ui){
CalcAnimation.SetValue(ui.value);
},
stop: function (event, ui) {
calc();
if(advLinked != ''){
programData = programDataLinked;
calc(advLinked);
programData = data;
}
}
});
CalcAnimation.SetValue(ob.find(".slider_0").slider('value'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment