Widget:CJP4: Difference between revisions

Jump to navigation Jump to search
Christopher Popma (talk | contribs)
No edit summary
Christopher Popma (talk | contribs)
No edit summary
Line 15: Line 15:
         max: 25,
         max: 25,
         step: 1,
         step: 1,
         value: 1,
         range: true,
         values: [5,20],
         values: [5, 20],
        change: function(event, ui) {
 
            if (ui.values[0] < ui.values[1])
            {       
                $("input.pillSizeSlider[data-index=0]").val(ui.values[0]);
                $("input.pillSizeSlider[data-index=1]").val(ui.values[1]);
            }
            else if (ui.values[0] > ui.values[1])
            {
                $("input.pillSizeSlider[data-index=1]").val(ui.values[0]);
                $("input.pillSizeSlider[data-index=0]").val(ui.values[1]);               
            }
            else
            {       
                $("input.pillSizeSlider[data-index=0]").val(ui.values[0]);
                $("input.pillSizeSlider[data-index=1]").val(ui.values[1]); 
            }
        }
     });
     });



Revision as of 02:02, 23 July 2015