jquery.mtz.monthpicker icon indicating copy to clipboard operation
jquery.mtz.monthpicker copied to clipboard

data- attributes not picked up if changed

Open gitbryan opened this issue 11 years ago • 1 comments

Using jquery 1.9.0

init of monthpicker checks to see if data has been set, but if the plugin has already been initialized it does not extend the element's data-start-year, data-final-year and data-selected-year attributes if they have changed.

Recommend cloning the element on re-init to get the updated attributes (since the first init causes jquery default .data() to lose its values) and reloading select.mtz-monthpicker-year.

gitbryan avatar Jul 26 '13 18:07 gitbryan

ignore https://github.com/lucianocosta/jquery.mtz.monthpicker/pull/43 use https://github.com/lucianocosta/jquery.mtz.monthpicker/pull/49

olleicua avatar Aug 03 '13 18:08 olleicua