-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finished ajax update dialog box and repositioned it with the twitter …
…button
- Loading branch information
Showing
3 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<% if @notice == "The password you entered is invalid!" %> | ||
|
||
var password = $( "#password" ); | ||
password.addClass( "ui-state-error" ); | ||
ajaxTips = $( ".validateTips" ); | ||
|
||
ajaxTips | ||
.text( "The password you entered is invalid!" ) | ||
.addClass( "ui-state-highlight" ); | ||
setTimeout(function() { | ||
tips.removeClass( "ui-state-highlight", 1500 ); | ||
}, 500 ); | ||
|
||
$("#notice").html(""); | ||
<% else %> | ||
/*Hide the div post_errors*/ | ||
|
||
<% flash[:notice] = "Your address update has completed successfully!" %> | ||
$( "#dialog-form" ).dialog( "close" ); | ||
|
||
/*Update the html of the div flash_notice with the new one*/ | ||
$("#notice").html("<%= escape_javascript(flash[:notice])%>"); | ||
<% end %> |