Changeset 1551:3fd7a893ddf9
- Timestamp:
- 08/23/13 20:09:40 (10 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/categories.php
r1547 r1551 152 152 { 153 153 $attr = 'id="cat_'.$rs->cat_id.'"'; 154 if ($rs->nb_total == 0) {155 $attr .= ' class="deletable"';156 }157 154 158 155 if ($rs->level > $level) { … … 168 165 echo 169 166 '<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':''). 171 168 '<label class="classic" for="cat-'.$rs->cat_id.'"><a href="category.php?id='.$rs->cat_id.'">'.html::escapeHTML($rs->cat_title).'</a></label>'. 172 169 ' (<a href="posts.php?cat_id='.$rs->cat_id.'">'. -
admin/js/_categories.js
r1547 r1551 20 20 $('#mov_cat').parent().hide(); 21 21 $('input[name="categories[]"]').click(function() { 22 $('#mov_cat').parent().show(); 22 if ($('input[name="categories[]"].notempty:checked').length>0) { 23 $('#mov_cat').parent().show().parent().removeClass('two-cols').addClass('three-cols'); 24 } else { 25 $('#mov_cat').parent().hide().parent().removeClass('three-cols').addClass('two-cols'); 26 } 23 27 }); 24 28
Note: See TracChangeset
for help on using the changeset viewer.