ok, problem is, that @slider have about 20 code lines.
I would prefer do not copy paste this 20 lines every time, I change "slider" variable. If I will change something in "@slider" section then, I will have to change that in every pasted block.
EDIT:
OK I got simple solution. In every block I need to call @slider I placed that 20 lines of "@slider" code at the end in "if" section ( ?: ), and before that I made variable "change_sliders" which is "1" only if sliders need to be changed.
BTW shouldn't it be in "sliderchange" to call the "@slider" section? Or maybe only as an option of sliderchange?
Last edited by Adam Fulara; 02-27-2011 at 06:16 AM.
|