Changeset 796

Show
Ignore:
Timestamp:
02/26/10 09:43:01 (6 months ago)
Author:
laceja
Message:

Added override of Focus() event

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/QAutoCompleteTextBox/source/includes/QAutoCompleteTextBoxBase.class.php

    r286 r796  
    138138                        $this->blnModified = true; 
    139139                } 
     140 
     141  /** 
     142    Override Focus() event because autocomplete is called with jquery document.onready, but focus is called using qc javascript function getW. 
     143  */ 
     144 
     145    public function Focus() { 
     146      QApplication::ExecuteJavascript(sprintf('jQuery(document).ready( 
     147         function() { 
     148           jQuery("#%s").focus(); });', $this->strControlId)); 
     149    } 
     150     
    140151        } 
    141152