Commits

William Roush  committed 128ade8

- Fixes bug where enter opens screen add window.

  • Participants
  • Parent commits eb6bcbc
  • Branches develop

Comments (0)

Files changed (1)

File app/views/attachments/_form.rhtml

 		<br />
 	<% end %>
 	<span id="screenshots_fields">
-	<%= submit_tag l(:button_add), :onclick => 'showAttachScreen(); return false;'%>
+	<%= submit_tag(l(:button_add), {:onclick => 'showAttachScreen(); return false;', :type => 'button'})%>
 	</span>
 	<small><%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %></small>
 	<span id="attach_applet" style="display: none; position: absolute; border: solid 1px #bbb;"></span>