Dotclear

Changeset 2040:ea21d2aa79a7


Ignore:
Timestamp:
09/23/13 15:13:18 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Remove bullet and indentation, and add classes for sub-categories in combobox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.admincombos.php

    r1780 r2040  
    3737          while ($categories->fetch()) { 
    3838               $categories_combo[] = new formSelectOption ( 
    39                     str_repeat('&nbsp;&nbsp;',$categories->level-1).($categories->level-1 == 0 ? '' : '&bull; '). 
     39//                  str_repeat('&nbsp;&nbsp;',$categories->level-1).($categories->level-1 == 0 ? '' : '&bull; '). 
    4040                    html::escapeHTML($categories->cat_title).' ('.$categories->nb_post.')', 
    41                     $categories->cat_id 
     41                    $categories->cat_id, 
     42                    ($categories->level-1 ? 'sub-option'.($categories->level-1) : '') 
    4243               ); 
    4344          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map