app/assets/javascripts/adminpanel/tables.js in adminpanel-1.2.12 vs app/assets/javascripts/adminpanel/tables.js in adminpanel-2.0.0

- old
+ new

@@ -104,11 +104,11 @@ endCalendar.datepicker('update', endCalendarDate); endCalendar.focus(); endCalendar.datepicker('show'); } -$(document).ready(function() { +var ready = function() { $('#information-table').dataTable( { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "Registros: _MENU_ ", @@ -118,9 +118,12 @@ "sInfoFiltered": "(_MAX_ registros fueron filtrados)", "sSearch": "Buscar:", "oPaginate" : { "sPrevious": "Anterior", "sNext": "Siguiente" - } + } } }); -} ); +} + +$(document).ready(ready); +$(document).on('page:load', ready);