Skip to content

Commit

Permalink
Fixing the pagination display on welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 5, 2016
1 parent f9d04e8 commit c728288
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions caravel/assets/javascripts/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,18 @@ function modelViewTable(selector, modelEndpoint) {
bInfo: false
});

// Hack to move the searchbox in the right spot
var search = panel.find(".dataTables_filter input");
search.addClass('form-control').detach();
search.appendTo(panel.find(".search"));
panel.find('.dataTables_filter').remove();

// Hack to display the page navigator properly
panel.find('.col-sm-5').remove();
var nav = panel.find('.col-sm-7');
nav.removeClass('col-sm-7');
nav.addClass('col-sm-12');

$(selector).slideDown();
$('[data-toggle="tooltip"]').tooltip({ container: 'body' });
});
Expand Down

0 comments on commit c728288

Please sign in to comment.