diff --git a/main/inc/lib/sortable_table.class.php b/main/inc/lib/sortable_table.class.php index 12074b48e4..f5ac55d511 100644 --- a/main/inc/lib/sortable_table.class.php +++ b/main/inc/lib/sortable_table.class.php @@ -265,7 +265,7 @@ class SortableTable extends HTML_Table { if (!confirm('."'".addslashes(get_lang("ConfirmYourChoice"))."'".')) { return false; } else { - var action =$(element).attr("data"); + var action =$(element).attr("data-action"); $(\' #form_'.$this->table_name.'_id input[name="action"] \').attr("value", action); $("#form_'.$this->table_name.'_id").submit(); return false; @@ -288,7 +288,7 @@ class SortableTable extends HTML_Table { $html .= ''; $html .= '
'; + $html .= ' | '; if (count($this->form_actions) > 0) { @@ -304,7 +304,7 @@ class SortableTable extends HTML_Table { '; $html .= ' | '; $html .= '';//btn-group @@ -319,7 +319,10 @@ class SortableTable extends HTML_Table { $html .= ''; $html .= $nav; $html .= ' | '; - } + }else{ + $html .= ''; + $html .= ' | '; + } $html .= '