[otrs-cvs] otrs/Kernel/Modules AgentTicketZoom.pm,1.48,1.49

CVS commits notifications of OTRS.org cvs-log at otrs.org
Mon Apr 28 23:05:39 GMT 2008


Comments:
Update of /home/cvs/otrs/Kernel/Modules
In directory lancelot:/tmp/cvs-serv17288/Kernel/Modules

Modified Files:
	AgentTicketZoom.pm 
Log Message:
Improved Collapse/Expand option.

Author: martin

Index: AgentTicketZoom.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketZoom.pm,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** AgentTicketZoom.pm	11 Apr 2008 15:45:46 -0000	1.48
--- AgentTicketZoom.pm	28 Apr 2008 23:05:34 -0000	1.49
***************
*** 710,738 ****
                  }
              }
  
!             # check if expand/cpllapse view is usable (only for less then 300 articles)
!             if ( $#ArticleBox < $ArticleMaxLimit ) {
!                 if ( $Count == 1 && $Self->{ZoomExpand} ) {
!                     $Self->{LayoutObject}->Block(
!                         Name => 'TreeItemCollapse',
!                         Data => {
!                             %Article,
!                             ArticleID      => $ArticleID,
!                             ZoomExpand     => $Self->{ZoomExpand},
!                             ZoomExpandSort => $Self->{ZoomExpandSort},
!                         },
!                     );
!                 }
!                 else {
!                     $Self->{LayoutObject}->Block(
!                         Name => 'TreeItemExpand',
!                         Data => {
!                             %Article,
!                             ArticleID      => $ArticleID,
!                             ZoomExpand     => $Self->{ZoomExpand},
!                             ZoomExpandSort => $Self->{ZoomExpandSort},
!                         },
!                     );
!                 }
              }
          }
--- 710,738 ----
                  }
              }
+         }
  
!         # check if expand/cpllapse view is usable (only for less then 300 articles)
!         if ( $Count == 1 && $#ArticleBox < $ArticleMaxLimit ) {
!             if ( $Self->{ZoomExpand} ) {
!                 $Self->{LayoutObject}->Block(
!                     Name => 'Collapse',
!                     Data => {
!                         %Article,
!                         ArticleID      => $ArticleID,
!                         ZoomExpand     => $Self->{ZoomExpand},
!                         ZoomExpandSort => $Self->{ZoomExpandSort},
!                     },
!                 );
!             }
!             else {
!                 $Self->{LayoutObject}->Block(
!                     Name => 'Expand',
!                     Data => {
!                         %Article,
!                         ArticleID      => $ArticleID,
!                         ZoomExpand     => $Self->{ZoomExpand},
!                         ZoomExpandSort => $Self->{ZoomExpandSort},
!                     },
!                 );
              }
          }


More information about the cvs-log mailing list