Line 42: | Line 42: | ||
}); | }); | ||
checkDatepicker(); | checkDatepicker(); | ||
+ | |||
+ | datePicker.change( function() { | ||
+ | console.log("change function does trigger"); | ||
+ | var buttonPrev = "<svg viewbox=\"0 0 100 100\"><path class=\"arrow\" d=\"M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z\" /></svg>"; | ||
+ | var buttonNext = "<svg viewbox=\"0 0 100 100\"><path class=\"arrow\" d=\"M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z \" transform=\"translate(85,100) rotate(180)\"></svg>" | ||
+ | $('.ui-datepicker-prev').append(buttonPrev); | ||
+ | $('.ui-datepicker-next').append(buttonNext); | ||
+ | }); | ||
}); | }); | ||
datePicker.change( function() { | datePicker.change( function() { | ||
+ | console.log("change function does trigger"); | ||
var buttonPrev = "<svg viewbox=\"0 0 100 100\"><path class=\"arrow\" d=\"M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z\" /></svg>"; | var buttonPrev = "<svg viewbox=\"0 0 100 100\"><path class=\"arrow\" d=\"M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z\" /></svg>"; | ||
var buttonNext = "<svg viewbox=\"0 0 100 100\"><path class=\"arrow\" d=\"M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z \" transform=\"translate(85,100) rotate(180)\"></svg>" | var buttonNext = "<svg viewbox=\"0 0 100 100\"><path class=\"arrow\" d=\"M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z \" transform=\"translate(85,100) rotate(180)\"></svg>" |
Revision as of 10:31, 31 August 2017