From 23f0cbe781df9f63969f1847963f9897355c7956 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 2 Jun 2008 14:19:34 -0700 Subject: [PATCH] Fixed broken account settings form submission. --- static/js/Wiki.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 6190281..c197824 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1437,8 +1437,10 @@ Wiki.prototype.submit_form = function ( form ) { self.share_notebook(); } } else if ( url == "/users/update_settings" ) { - self.email_address = result.email_address || ""; - self.display_message( "Your account settings have been updated." ); + callback = function ( result ) { + self.email_address = result.email_address || ""; + self.display_message( "Your account settings have been updated." ); + } } this.invoker.invoke( url, "POST", args, callback, form );