Created
November 25, 2010 08:40
-
-
Save fivetwentysix/715091 to your computer and use it in GitHub Desktop.
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
if ($('repliesContainer')) { | |
var containerElement = $('repliesContainer'); | |
var highlightEffect = function() { | |
var newElement = containerElement.getChildren('div').getLast(); | |
newElement.setStyle('color', '#ffa'); | |
}; | |
new Request.HTML({ | |
url: '<%= instruction_instruction_item_reply_path(:id => @reply.id) %>', | |
append: $(containerElement), | |
onSuccess: highlightEffect | |
}).get(); | |
} else { | |
new MUI.notification('Reply saved.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment