[pLog-svn] r6047 - plog/trunk/js/ui
mark at devel.lifetype.net
mark at devel.lifetype.net
Fri Nov 16 02:38:05 EST 2007
Author: mark
Date: 2007-11-16 02:38:05 -0500 (Fri, 16 Nov 2007)
New Revision: 6047
Modified:
plog/trunk/js/ui/forms.js
Log:
I think we forgot put the callback function into execution after the ajaxcall.
Modified: plog/trunk/js/ui/forms.js
===================================================================
--- plog/trunk/js/ui/forms.js 2007-11-16 06:30:28 UTC (rev 6046)
+++ plog/trunk/js/ui/forms.js 2007-11-16 07:38:05 UTC (rev 6047)
@@ -291,6 +291,10 @@
// fire the error event
Lifetype.Forms.Events.formProcessorFailureEvent.fire( o );
+ // invoke form error callback
+ if( options.formErrorCallback )
+ options.formErrorCallback();
+
return( true );
}
else {
@@ -311,11 +315,19 @@
// fire the success
Lifetype.Forms.Events.formProcessorSuccessEvent.fire( o );
+
+ // invoke form success callback
+ if( options.formSuccessCallback )
+ options.formSuccessCallback();
}
},
failure: function() {
// fire the error event
Lifetype.Forms.Events.formProcessorFailureEvent.fire( o );
+
+ // invoke form success callback
+ if( options.formSuccessCallback )
+ options.formSuccessCallback();
}
}
);
More information about the pLog-svn
mailing list