@@ -306,15 +306,24 @@ Sys.Extended.UI.ControlBase = function(element) {
306
306
this . _onerror$delegate = Function . createDelegate ( this , this . _onerror ) ;
307
307
}
308
308
309
- Sys . Extended . UI . ControlBase . __doPostBack = function ( eventTarget , eventArgument ) {
309
+ Sys . Extended . UI . ControlBase . _execOnSubmitCollection = function ( ) {
310
310
if ( ! Sys . WebForms . PageRequestManager . getInstance ( ) . get_isInAsyncPostBack ( ) ) {
311
311
for ( var i = 0 ; i < Sys . Extended . UI . ControlBase . onsubmitCollection . length ; i ++ ) {
312
312
Sys . Extended . UI . ControlBase . onsubmitCollection [ i ] ( ) ;
313
313
}
314
314
}
315
+ }
316
+
317
+ Sys . Extended . UI . ControlBase . __doPostBack = function ( eventTarget , eventArgument ) {
318
+ Sys . Extended . UI . ControlBase . _execOnSubmitCollection ( ) ;
315
319
Function . createDelegate ( window , Sys . Extended . UI . ControlBase . __doPostBackSaved ) ( eventTarget , eventArgument ) ;
316
320
}
317
321
322
+ Sys . Extended . UI . ControlBase . __doPostBackWithOptions = function ( options ) {
323
+ Sys . Extended . UI . ControlBase . _execOnSubmitCollection ( ) ;
324
+ Sys . Extended . UI . ControlBase . __doPostBackWithOptionsSaved ( options ) ;
325
+ }
326
+
318
327
Sys . Extended . UI . ControlBase . prototype = {
319
328
initialize : function ( ) {
320
329
Sys . Extended . UI . ControlBase . callBaseMethod ( this , "initialize" ) ;
@@ -328,6 +337,10 @@ Sys.Extended.UI.ControlBase.prototype = {
328
337
window . __doPostBack = Sys . Extended . UI . ControlBase . __doPostBack ;
329
338
Sys . Extended . UI . ControlBase . onsubmitCollection = new Array ( ) ;
330
339
}
340
+ if ( ! Sys . Extended . UI . ControlBase . __doPostBackWithOptionsSaved ) {
341
+ Sys . Extended . UI . ControlBase . __doPostBackWithOptionsSaved = window . WebForm_DoPostBackWithOptions ;
342
+ window . WebForm_DoPostBackWithOptions = Sys . Extended . UI . ControlBase . __doPostBackWithOptions ;
343
+ }
331
344
Array . add ( Sys . Extended . UI . ControlBase . onsubmitCollection , this . _onsubmit$delegate ) ;
332
345
} else {
333
346
$addHandler ( document . forms [ 0 ] , "submit" , this . _onsubmit$delegate ) ;
0 commit comments