jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Issue with jqm 1.3.1 - jqm-databox-core #271

Closed ghost closed 11 years ago

ghost commented 11 years ago

When using jqm 1.3.1, When clicking on the date text field

line 239 in jqm-databox-core.js cause an error: var w = parseInt($.mobile.version.replace(/./g,''),10) > 110 ? $(this).data('mobileDatebox') : $(this).data('datebox');

after executing the line - w is undefined and event handling fails. It seems that "mobileDatabox" should be "mobile-datebox"

$(this) is defined as follows:
[ <input name=​"dateOfBirth" id=​"dateOfBirth" type=​"text" class=​"iso-form-field ui-input-text ui-body-c ui-corner-all ui-icon-datebox" placeholder=​"Date of Birth" data-role=​"datebox" data-options=​"{"mode":​"flipbox", "useNewStyle":​true,"useFocus":​true, "useHeader":​false, "useSetButton":​true, "maxYear":​2000,"minYear":​1960}​" readonly=​"readonly">​ ]

jnyrup commented 11 years ago

mobileDatebox is stil available with jqm 1.3.1 but from jQuery 2.0.0 only mobile-datebox is available. I've mentioned the problem and proposed a fix in #269

jtsage commented 11 years ago

Fixed with #269