2

J'utilise footable pour une page d'index, j'utilise slim intead de html, mais quand je clique sur l'icône de tri dans footable les numéros de pagination augmentant abruptement.pagination de pieds ne fonctionne pas correctement en utilisant mince

wrapper.wrapper-content.animated.fadeInRight 
    .row 
    .col-lg-12 
     .ibox.float-e-margins 
     .ibox-title 
     h5 List of Organizations 
     .ibox-content 
      table class="footable table table-stripped" data-page-size="10" 
      thead 
      tr 
      th Organization 
      th Type 
      tbody 
      - @organizations.each do |f| 
      tr 
       td= f.name 
       td= f.type 
      tfoot 
      tr 
      td colspan="2" 
       ul class="pagination pull-right" 
javascript: 
$(function() { 
$('.footable').footable(); 
}); 

avant le clic sur icone de tri enter image description here après un clic sur icone de tri enter image description here

Suis-je fait quelque chose de mal, s'il vous plaît laissez-moi savoir grâce à l'avance.

Répondre

1
wrapper.wrapper-content.animated.fadeInRight 
    .row 
    .col-lg-12 
     .ibox.float-e-margins 
     .ibox-title 
     h5 List of Organizations 
     .ibox-content 
      table class="footable table table-stripped" data-page-size="10" 
      thead 
      tr 
      th Organization 
      th Type 
      tbody 
      - @organizations.each do |f| 
      tr 
       td= f.name 
       td= f.type 
      tfoot 
      tr 
      td colspan="2" 
       ul class="pagination pull-right" 
javascript: 
    $(function() { 
    $('.footable').footable(); 
    }); 
1

Vous devez ajouter l'intention de ces lignes

javascript: 
    $(function() { 
    $('.footable').footable(); 
    });