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:59 UTC
svn commit: r791375 -
/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: bommel
Date: Mon Jul 6 04:18:59 2009
New Revision: 791375
URL: http://svn.apache.org/viewvc?rev=791375&view=rev
Log:
(TOBAGO-748) <tc:command> with <facet name="change"> inside of selectOneChoice lost focus after action
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=791375&r1=791374&r2=791375&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Mon Jul 6 04:18:59 2009
@@ -1196,10 +1196,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;
}