Browse Source

Add sort icon to table

experimental
Paweł Jedwabny 3 years ago
parent
commit
d403ad11d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/Utils/GenericBrowser/GenericBrowser_0.php

+ 1
- 1
modules/Utils/GenericBrowser/GenericBrowser_0.php View File

@@ -918,7 +918,7 @@ class Utils_GenericBrowser extends Module {
}
if(isset($v['order'])) $is_order = true;
if(!isset($headers[$i])) $headers[$i] = array('label'=>'');
if ($v['name'] && $v['name']==$order[0]['column']) $label = '<span style="padding-right: 12px; margin-right: 12px; background-image: url('.Base_ThemeCommon::get_template_file('Utils_GenericBrowser','sort-'.strtolower($order[0]['direction']).'ending.png').'); background-repeat: no-repeat; background-position: right;">'.$v['name'].'</span>';
if ($v['name'] && $v['name']==$order[0]['column']) $label = '<span><i class="fa fa-sort-alpha-'.strtolower($order[0]['direction']).'"></i> '.$v['name'].'</span>';
else $label = $v['name'];
$headers[$i]['label'] .= (isset($v['preppend']) ? $v['preppend'] : '') . (isset($v['order']) ? '<a ' . $this->create_unique_href(array('change_order' => $v['name'])) . '>' . $label . '</a>' : $label) . (isset($v['append']) ? $v['append'] : '');
//if ($v['search']) $headers[$i] .= $form_array['search__'.$v['search']]['label'].$form_array['search__'.$v['search']]['html'];


Loading…
Cancel
Save