Dotclear

Changeset 2071:04a2d46c1d46


Ignore:
Timestamp:
09/24/13 20:34:12 (11 years ago)
Author:
Dsls
Branch:
default
Message:

added checkboxes memory in comments lists, small fixes to comment actions

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r2067 r2071  
    147147     $anchor = 'comments'; 
    148148}     
    149 $comments_actions_page = new dcCommentsActionsPage($core,'post.php',array('id' => $post_id, '_ANCHOR'=>$anchor)); 
     149 
     150$comments_actions_page = new dcCommentsActionsPage($core,'post.php',array('id' => $post_id, '_ANCHOR'=>$anchor,'section' => $anchor)); 
    150151 
    151152if ($comments_actions_page->process()) { 
     
    658659          '<p class="col right"><label for="action" class="classic">'.__('Selected comments action:').'</label> '. 
    659660          form::combo('action',$combo_action). 
    660           form::hidden('section','comments'). 
     661          form::hidden(array('section'),'comments'). 
    661662          form::hidden(array('id'),$post_id). 
    662663          $core->formNonce(). 
     
    743744          form::combo('action', $combo_action). 
    744745          form::hidden('id',$post_id). 
    745           form::hidden('section','trackbacks'). 
     746          form::hidden(array('section'),'trackbacks'). 
    746747          $core->formNonce(). 
    747748          '<input type="submit" value="'.__('ok').'" /></p>'. 
  • inc/admin/actions/class.dcactioncomments.php

    r2069 r2071  
    1717          parent::__construct($core,$uri,$redirect_args); 
    1818          $this->redirect_fields = array('type','author','status', 
    19                'sortby','ip','order','page','nb'); 
     19               'sortby','ip','order','page','nb','section'); 
    2020          $this->field_entries = 'comments'; 
    2121          $this->title_cb = __('Comments'); 
  • inc/admin/lib.pager.php

    r2008 r2071  
    457457          $res .= 
    458458          '<td class="nowrap">'. 
    459           form::checkbox(array('comments[]'),$this->rs->comment_id,'','','',0).'</td>'. 
     459          form::checkbox(array('comments[]'),$this->rs->comment_id,$checked,'','',0).'</td>'. 
    460460          '<td class="nowrap" abbr="'.__('Type and author').'" scope="row">'. 
    461461               '<a href="'.$comment_url.'" title="'.$comment_title.'">'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map