Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // put the view editing Javascript logic in a static .js file:
- MyApp = {
- onCreateReview: function(flash, newReviewsCount, reviewPartial) {
- $("#new_review").before('<div id="flash_notice">' + flash + '</div>');
- $("#reviews_count").html(newReviewsCount);
- $("#reviews").append(reviewPartial);
- $("#new_review")[0].reset();
- }
- };
Add Comment
Please, Sign In to add comment