Skip to content

Commit

Permalink
Show default select controls on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
simov committed Nov 23, 2014
1 parent b36616c commit 8c043be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/express-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8c043be

Please sign in to comment.