par une class "sub-opt" (sur la balise option) par exemple 2013/9/10 Franck Paul <[email protected]>: > Sur la branche 2.6, Ok, mais on remplace par quoi ? > > > 2013/9/10 Kozlika <[email protected]> > >> Sur ce commit : on ne pourrait pas en profiter pour virer les "bull" >> qui bloquent l'accès direct par "auto-completion" ? >> >> 2013/9/10 <[email protected]>: >> > Revision: 1772 (830249daf702} Branch: 2.5 Author: Dsls Date: 2013-09-10 >> > 11:02 +0200 Details: Details: >> > http://dev.dotclear.org/2.0/changeset/830249daf702 >> > >> > Log Message >> > >> > Harmonized categories combo in posts.php like other admin pages, see >> #1564 >> > >> > >> > diffstat: >> > >> > admin/posts.php | 16 ++++++++-------- >> > 1 files changed, 8 insertions(+), 8 deletions(-) >> > >> > diffs (35 lines): >> > >> > diff -r 6970a9e9bd50 -r 830249daf702 admin/posts.php >> > --- a/admin/posts.php Tue Sep 10 10:29:37 2013 +0200 >> > +++ b/admin/posts.php Tue Sep 10 11:02:36 2013 +0200 >> > @@ -60,15 +60,15 @@ >> > $users_combo[$user_cn] = $users->user_id; >> > } >> > >> > + $categories_values = array('NULL' => true); >> > $categories_combo[__('None')] = 'NULL'; >> > while ($categories->fetch()) { >> > - $label = >> > str_repeat(' ',$categories->level-1).($categories->level-1 == >> 0 ? >> > '' : '• '). >> > - html::escapeHTML($categories->cat_title). >> > - ' ('.$categories->nb_post.')'; >> > - while (array_key_exists($label,$categories_combo)) { >> > - $label .= ' '; >> > - } >> > - $categories_combo[$label] = $categories->cat_id; >> > + $categories_combo[] = new formSelectOption( >> > + >> > str_repeat(' ',$categories->level-1).($categories->level-1 == >> 0 ? >> > '' : '• '). >> > + html::escapeHTML($categories->cat_title).' >> > ('.$categories->nb_post.')', >> > + $categories->cat_id >> > + ); >> > + $categories_values[$categories->cat_id] = true; >> > } >> > >> > $status_combo = array( >> > @@ -176,7 +176,7 @@ >> > } >> > >> > # - Categories filter >> > -if ($cat_id !== '' && in_array($cat_id,$categories_combo)) { >> > +if ($cat_id !== '' && isset($categories_values[$cat_id])) { >> > $params['cat_id'] = $cat_id; >> > $show_filters = true; >> > } else { >> > -- >> > Tracker mailing list - [email protected] - >> > http://ml.dotclear.net/listinfo/tracker >> >> >> >> -- >> Anne / Kozlika >> -- >> Dev mailing list - [email protected] - >> http://ml.dotclear.org/listinfo/dev >> > > > > -- > Franck > -- > Dev mailing list - [email protected] - http://ml.dotclear.org/listinfo/dev
-- Anne / Kozlika -- Dev mailing list - [email protected] - http://ml.dotclear.org/listinfo/dev
