Sha256: b4ef788e187fe660bc6cf4ffa856ab92ae7b814792b2befb42eb4dbff7ef6ce4

Contents?: true

Size: 721 Bytes

Versions: 8

Compression:

Stored size: 721 Bytes

Contents

<%% title "Edit <%=child_class_name%>" %>

<%% if params[:edit] == '<%=child_singular_name%>' %>
	<script type="text/javascript" charset="utf-8">

		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);
		}
	</script>
<%% end -%>

<%%= render :partial => 'form' %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dust-generators-0.2.8 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.6 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.5 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.4 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.3 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.2 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.1 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.0 rails_generators/dust_albums/templates/app/views/photos/edit.html.erb