2

我使用一個索引頁footable正常工作,我使用HTML的超薄這一翻譯,但是當我在footable分頁數字點擊排序圖標增加abrupty。footable分頁不使用超薄

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(); 
}); 

點擊排序圖標 enter image description here 後點擊排序圖標之前 enter image description here

難道我做錯了什麼,請讓我知道在此先感謝。

回答

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

你應該加入這一行的意圖

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