You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2013/06/11 16:13:30 UTC
svn commit: r1491806 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: weber
Date: Tue Jun 11 14:13:29 2013
New Revision: 1491806
URL: http://svn.apache.org/r1491806
Log:
TOBAGO-1277 - readd javascript callback to execute after partially reload
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-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/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1491806&r1=1491805&r2=1491806&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Tue Jun 11 14:13:29 2013
@@ -2219,6 +2219,10 @@ Tobago.Updater = {
}
Tobago.Updater.handleMissingResponses(requestOptions.ajaxComponentIds, doneIds);
+
+ if (typeof requestOptions.afterDoUpdateSuccess == 'function') {
+ requestOptions.afterDoUpdateSuccess(requestOptions);
+ }
},
handleMissingResponses: function(ids, doneIds) {
@@ -2265,6 +2269,11 @@ Tobago.Updater = {
} else {
Tobago.Updater.doErrorUpdate(Tobago.parsePartialIds(requestObject.ajaxComponentIds));
}
+
+ if (typeof requestObject.afterDoUpdateError == 'function') {
+ requestObject.afterDoUpdateError();
+ }
+
},
updateComponent: function(componentData) {