// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function enableEditIngredient(element) {
	var parents = element.ancestors();
	new Ajax.Updater(parents[0].id, '/recipes/rei/' + parents[0].id.split('_')[1]);
	return;
}

function disableEditIngredient(element) {
	var parents = element.ancestors();
	new Ajax.Updater(parents[0].id, '/recipes/rsi/' + parents[0].id.split('_')[1]);
	return;
}
