$("#ajax-modal").html("<%=j render(:template => 'easy_custom_project_menus/edit', :formats => [:html]) %>");
showModal('ajax-modal', '60%');
var submitButton = {
  text:"<%=j l(:button_update) -%>",
  title:"<%=j l(:button_update) -%>",
  click: function() {$(this).find('form').submit()},
  'class': 'button-positive'
}
var closeButton = {
  text: "<%=j l(:button_close) -%>",
  title: "<%=j l(:button_close) -%>",
  click: function() {$(this).dialog('close');},
  'class': 'button'
}
$("#ajax-modal").dialog('option', {
  buttons: [closeButton, submitButton]
});