-
title “Edit <%=child_class_name%>”
-
if params == ‘<%=child_singular_name%>’
%script{:charset => “utf-8”, :type => “text/javascript”}
var options = { success: showFlash, data: {format: 'js'}, clearForm: true }; $('.edit_<%=child_singular_name%>').ajaxForm(options); $("#<%=child_singular_name%>_submit").click(function () { $("#fancybox-inner").fadeTo("slow", 0.1); $.fancybox.showActivity(); }); function showFlash() { $("#status").html("Success, Your settings have been saved"); $('#status').fadeIn().delay(2000).slideUp('slow'); $.fancybox.close(); $("#fancybox-inner").fadeTo("slow", 1); }