witten
/
luminotes
Archived
1
0
Fork 0

"Please check your inbox" message is now an orange message box instead of a red error box.

This commit is contained in:
Dan Helfman 2007-09-27 22:40:18 +00:00
parent c343db12e2
commit 9673d84c3f
3 changed files with 5 additions and 3 deletions

View File

@ -459,10 +459,8 @@ class Users( object ):
server.sendmail( message[ u"from" ], [ email_address ], message.as_string() )
server.quit()
# FIXME: this should really be "message =" instead of "error =" since it's not an error, but at
# least this gets it displayed on the client
yield dict(
error = u"Please check your inbox. A password reset email has been sent to %s" % email_address,
message = u"Please check your inbox. A password reset email has been sent to %s" % email_address,
)
@expose( view = Main_page )

View File

@ -70,6 +70,9 @@ Invoker.prototype.handle_response = function ( request, callback ) {
if ( result.error )
signal( this, "error_message", result.error );
if ( result.message )
signal( this, "message", result.message );
if ( callback )
callback( result );

View File

@ -16,6 +16,7 @@ function Wiki( invoker ) {
this.storage_usage_high = false;
connect( this.invoker, "error_message", this, "display_error" );
connect( this.invoker, "message", this, "display_message" );
connect( "search_form", "onsubmit", this, "search" );
connect( "search_button", "onclick", this, "toggle_search_options" );
connect( "html", "onclick", this, "background_clicked" );