lib/generators/redmine_extensions/entity/templates/edit.js.erb.erb in redmine_extensions-0.1.13 vs lib/generators/redmine_extensions/entity/templates/edit.js.erb.erb in redmine_extensions-0.1.14
- old
+ new
@@ -1,17 +1,17 @@
-$("#ajax-modal").html("<%%= j render(:template => '<%= model_name_pluralize_underscored %>/edit', :formats => [:html]) %>");
-showModal('ajax-modal');
-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]
+$("#ajax-modal").html("<%%= j render(:template => '<%= model_name_pluralize_underscored %>/edit', :formats => [:html]) %>");
+showModal('ajax-modal');
+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]
});
\ No newline at end of file