Dotclear


Ignore:
Timestamp:
08/23/13 20:09:40 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Issue #1541 : combo box for category that can received entries is only show if a category with entries is selected to be removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r1547 r1551  
    152152     { 
    153153          $attr = 'id="cat_'.$rs->cat_id.'"'; 
    154           if ($rs->nb_total == 0) { 
    155                $attr .= ' class="deletable"'; 
    156           } 
    157154 
    158155          if ($rs->level > $level) { 
     
    168165          echo 
    169166          '<p>'. 
    170           form::checkbox(array('categories[]','cat-'.$rs->cat_id),$rs->cat_id). 
     167          form::checkbox(array('categories[]','cat-'.$rs->cat_id),$rs->cat_id,null,$rs->nb_total>0?'notempty':''). 
    171168          '<label class="classic" for="cat-'.$rs->cat_id.'"><a href="category.php?id='.$rs->cat_id.'">'.html::escapeHTML($rs->cat_title).'</a></label>'. 
    172169          ' (<a href="posts.php?cat_id='.$rs->cat_id.'">'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map