Show default select controls on mobile devices

This commit is contained in:
simov
2014-11-23 13:56:18 +02:00
parent b36616c1b8
commit 8c043be2f4
+6 -2
View File
@@ -124,8 +124,10 @@ $(function () {
$rows.appendTo(tbody);
// init controls
if ($('.chosen-select').length)
if ($('.chosen-select').length) {
if (isMobile()) $('.chosen-select').show();
$('.chosen-select', $rows).chosen(chosen);
}
initDatetimePickers('dynamic', $rows);
if (typeof onAddInline === 'function')
onAddInline($rows);
@@ -235,8 +237,10 @@ $(function () {
);
// chosen
if ($('.chosen-select').length)
if ($('.chosen-select').length) {
if (isMobile()) $('.chosen-select').show();
$('tr:not(.blank) .chosen-select, .x-filter .chosen-select').chosen(chosen);
}
// datepicker
initDatetimePickers('static', document);