Sha256: a79608533f6d83bc5f37ccac70bda609658df77d9ec08fa3317c29e39ac64027

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

(function($) {

	$('#<%= content_dom_id(@content) -%>').replaceWith('<%= escape_javascript(
		render(
			:partial => "alchemy/essences/essence_picture_editor",
			:locals => {:content => @content, :options => params[:options]}
		)
	) -%>');
	Alchemy.growl('<%= t("Image updated successfully") -%>');
	Alchemy.ImageCropper.destroy();
	Alchemy.closeCurrentWindow();
	Alchemy.reloadPreview();
<%- if @content.element.contents.find_all_by_essence_type("Alchemy::EssencePicture").size > 1 -%>
	Alchemy.SortableContents('<%= form_authenticity_token -%>');
<%- end -%>

})(jQuery);

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_cms-2.1.rc5 app/views/alchemy/admin/essence_pictures/update.js.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/essence_pictures/update.js.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/essence_pictures/update.js.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/essence_pictures/update.js.erb