[otrs-cvs] otrs/Kernel/Modules AgentTicketPhone.pm,1.80,1.81

CVS commits notifications of OTRS.org cvs-log at otrs.org
Mon Nov 10 10:34:44 GMT 2008


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

Modified Files:
	AgentTicketPhone.pm 
Log Message:
Added automplete feature for customer search.

Author: ub

Index: AgentTicketPhone.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketPhone.pm,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** AgentTicketPhone.pm	6 Nov 2008 18:16:18 -0000	1.80
--- AgentTicketPhone.pm	10 Nov 2008 10:34:39 -0000	1.81
***************
*** 638,641 ****
--- 638,642 ----
              $Error{'Service invalid'} = 'invalid';
          }
+ 
          if (%Error) {
  
***************
*** 1413,1416 ****
--- 1414,1441 ----
      }
  
+     # build customer search autocomplete field
+     my $AutoCompleteConfig = $Self->{ConfigObject}->Get('Ticket::Frontend::CustomerSearchAutoComplete');
+     if ( $AutoCompleteConfig->{Active} ) {
+         $Self->{LayoutObject}->Block(
+             Name => 'CustomerSearchAutoComplete',
+             Data => {
+                 minQueryLength => $AutoCompleteConfig->{MinQueryLength} || 2,
+                 queryDelay     => $AutoCompleteConfig->{QueryDelay}     || 0.1,
+                 typeAhead      => $AutoCompleteConfig->{TypeAhead}      || 'false',
+             },
+         );
+         $Self->{LayoutObject}->Block(
+             Name => 'CustomerSearchAutoCompleteDivStart',
+         );
+         $Self->{LayoutObject}->Block(
+             Name => 'CustomerSearchAutoCompleteDivEnd',
+         );
+     }
+     else {
+         $Self->{LayoutObject}->Block(
+             Name => 'SearchCustomerButton',
+         );
+     }
+ 
      # build string
      $Param{'OptionStrg'} = $Self->{LayoutObject}->BuildSelection(


More information about the cvs-log mailing list