Make chosen work on mobile https://realize.be/blog/mobile-support-chosen
parent
0fd9ca00d0
commit
382e9840ca
|
@ -624,6 +624,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
if ("Microsoft Internet Explorer" === window.navigator.appName) {
|
if ("Microsoft Internet Explorer" === window.navigator.appName) {
|
||||||
return document.documentMode >= 8;
|
return document.documentMode >= 8;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
if (/iP(od|hone)/i.test(window.navigator.userAgent)
|
if (/iP(od|hone)/i.test(window.navigator.userAgent)
|
||||||
||
|
||
|
||||||
/IEMobile/i.test(window.navigator.userAgent)
|
/IEMobile/i.test(window.navigator.userAgent)
|
||||||
|
@ -896,7 +897,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (evt && ((ref = evt.type) === 'mousedown' || ref === 'touchstart') && !this.results_showing) {
|
if (evt && ((ref = evt.type) === 'mousedown' || ref === 'touchstart') && !this.results_showing) {
|
||||||
evt.preventDefault();
|
//evt.preventDefault();
|
||||||
}
|
}
|
||||||
if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
|
if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
|
||||||
if (!this.active_field) {
|
if (!this.active_field) {
|
||||||
|
|
Loading…
Reference in New Issue