Dotclear

Changeset 1935:fb17968f0a0f


Ignore:
Timestamp:
09/17/13 22:27:03 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
default
Message:

Group category selection and new category on entry sidebar, fixes #1659

Location:
admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_post.js

    r1832 r1935  
    191191               hide: $('#post_notes').val() == '' 
    192192          }); 
    193           $('#create_cat').toggleWithLegend($('#create_cat').parent().children().not('#create_cat'),{ 
    194                // no cookie on new category as we don't use this every day 
    195                legend_click: true 
    196           }); 
    197193          $('#post_lang').parent().children('label').toggleWithLegend($('#post_lang'),{ 
    198194               user_pref: 'dcx_post_lang', 
     
    216212               legend_click: true 
    217213          }); 
    218           $('#cat_id').parent().children('label').toggleWithLegend($('#cat_id'),{ 
    219                user_pref: 'cat_id', 
     214          $('#label_cat_id').toggleWithLegend($('#label_cat_id').parent().children().not('#label_cat_id'),{ 
     215               user_pref: 'dcx_cat_id', 
    220216               legend_click: true 
    221217          }); 
  • admin/post.php

    r1831 r1935  
    466466                         __('Selected entry').'</label></p>', 
    467467                    'cat_id' => 
    468                          '<p><label for="cat_id" class="ib">'.__('Category').'</label>'. 
     468                         '<div>'. 
     469                         '<h5 id="label_cat_id">'.__('Category').'</h5>'. 
     470                         '<p><label for="cat_id">'.__('Category:').'</label>'. 
    469471                         form::combo('cat_id',$categories_combo,$cat_id,'maximal'). 
    470472                         '</p>'. 
    471473                         ($core->auth->check('categories', $core->blog->id) ? 
    472                               '<div>'. 
    473474                              '<h5 id="create_cat">'.__('Add a new category').'</h5>'. 
    474475                              '<p><label for="new_cat_title">'.__('Title:').' '. 
     
    476477                              '<p><label for="new_cat_parent">'.__('Parent:').' '. 
    477478                              form::combo('new_cat_parent',$categories_combo,'','maximal'). 
    478                               '</label></p>'. 
    479                               '</div>' 
    480                          : ''))), 
     479                              '</label></p>' 
     480                         : ''). 
     481                         '</div>')), 
    481482          'options-box' => array( 
    482483               'title' => __('Options'), 
Note: See TracChangeset for help on using the changeset viewer.

Sites map