Ignore:
Timestamp:
01/29/09 15:09:14 (3 years ago)
Author:
CrawfordCurrie
Message:

Item4312: support for header, footer etc. Item412: added =reverse= sort for searches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ActionTrackerPlugin/lib/Foswiki/Plugins/ActionTrackerPlugin.pm

    r2226 r2227  
    132132 
    133133    if( Foswiki::Func::getSkin() =~ /\baction\b/ ) { 
    134 print STDERR "Action edit\n"; 
    135134        return _beforeActionEdit(@_); 
    136135    } else { 
    137 print STDERR "Noamrl edit\n"; 
    138136        return _beforeNormalEdit(@_); 
    139137    } 
     
    411409    my $orient = $attrs->remove( 'orient' ); 
    412410    my $sort = $attrs->remove( 'sort' ); 
     411    my $reverse = $attrs->remove( 'reverse' ); 
    413412    if ( defined( $fmts ) || defined( $hdrs ) || defined( $orient )) { 
    414413        $fmts = $defaultFormat->getFields() unless ( defined( $fmts )); 
     
    421420 
    422421    my $actions = Foswiki::Plugins::ActionTrackerPlugin::ActionSet::allActionsInWebs( $web, $attrs, 0 ); 
    423     $actions->sort( $sort ); 
     422    $actions->sort( $sort, $reverse ); 
    424423    return $actions->formatAsHTML( $fmt, 'href', $options->{USENEWWINDOW}, 
    425424                                   'atpSearch' ); 
     
    440439    }; 
    441440    if ($@) { 
     441        print STDERR "ActionTrackerPlugin: init failed $@\n"; 
    442442        Foswiki::Func::writeWarning("ActionTrackerPlugin: init failed $@"); 
    443443        return 0; 
Note: See TracChangeset for help on using the changeset viewer.