You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/07/06 06:18:41 UTC
svn commit: r791374 -
/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: bommel
Date: Mon Jul 6 04:18:41 2009
New Revision: 791374
URL: http://svn.apache.org/viewvc?rev=791374&view=rev
Log:
(TOBAGO-748) <tc:command> with <facet name="change"> inside of selectOneChoice lost focus after action
Modified:
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=791374&r1=791373&r2=791374&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Mon Jul 6 04:18:41 2009
@@ -1210,10 +1210,10 @@
*/
setFocus: function() {
var elementId;
- if (this.lastFocusId !== undefined) {
- elementId = this.lastFocusId;
- } else if (this.errorFocusId !== undefined) {
+ if (this.errorFocusId !== undefined) {
elementId = this.errorFocusId;
+ } else if (this.lastFocusId !== undefined) {
+ elementId = this.lastFocusId;
} else {
elementId = this.focusId;
}