Sha256: 49c6306c672feae1a944f473fee186ba1818dfd794f074e02d4edd78560ea3b0

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 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

3 entries across 3 versions & 1 rubygems

Version Path
dust-generators-0.2.6 lib/generators/dust/albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.5 lib/generators/dust/albums/templates/app/views/photos/edit.html.erb
dust-generators-0.2.4 lib/generators/dust/albums/templates/app/views/photos/edit.html.erb