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

Loading…
Cancel
Save