Fixing a bug in the sortable class

skala
Julio Montoya 15 years ago
parent 931163debf
commit ef9cf2baff
  1. 8
      main/inc/lib/sortabletable.class.php

@ -220,8 +220,8 @@ class SortableTable extends HTML_Table {
//Only show pagination info when there are items to paginate
if ($this->total_number_of_items > $this->default_items_per_page) {
$html = '<table style="width:100%;">';
if ($this->get_total_number_of_items() > $this->default_items_per_page) {
$html = '<table class="data_table_pagination">';
$html .= '<tr>';
$html .= '<td style="width:25%;">';
$html .= $form;
@ -272,9 +272,13 @@ class SortableTable extends HTML_Table {
$html .= $form;
}
$html .= '</td>';
if ($this->get_total_number_of_items() > $this->default_items_per_page) {
$html .= '<td style="text-align:right;">';
$html .= $nav;
$html .= '</td>';
}
$html .= '</tr>';
$html .= '</table>';
if (count($this->form_actions) > 0) {

Loading…
Cancel
Save