我正在使用footable作为索引页面,我使用的是简单的html内容,但是当我点击排序图标时,页脚数量会增加,这会使页面数量增加。
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();
});
我做错了什么,请提前通知我。
答案 0 :(得分:1)
您应该为这些行添加意图
javascript:
$(function() {
$('.footable').footable();
});
答案 1 :(得分: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();
});