mirror of
https://github.com/Mintplex-Labs/express-admin.git
synced 2026-07-19 13:34:42 -04:00
Show default select controls on mobile devices
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user