Commit 8b334945 authored by maeda's avatar maeda

Replace cancel button with cancel link in modals (#28662).

Patch by Marius BALTEANU.


git-svn-id: https://svn.redmine.org/redmine/trunk@17677 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7749e4d7
......@@ -4,6 +4,6 @@
<%= render :partial => 'new_users_form' %>
<p class="buttons">
<%= submit_tag l(:button_add) %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -4,6 +4,6 @@
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
<p class="buttons">
<%= submit_tag l(:button_create), :name => nil %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -46,7 +46,7 @@
<% end %>
<p class="buttons">
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button', :data => { :disable_with => false } %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
</div>
......
......@@ -4,6 +4,6 @@
<%= render :partial => 'new_form' %>
<p class="buttons">
<%= submit_tag l(:button_add), :id => 'member-add-submit' %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -4,6 +4,6 @@
<%= render :partial => 'new_form' %>
<p class="buttons">
<%= submit_tag l(:button_add), :name => nil %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -13,6 +13,6 @@
<p class="buttons">
<%= submit_tag l(:button_submit), onclick: "hideModal(this);" %>
<%= submit_tag l(:button_cancel), name: nil, onclick: "hideModal(this);", type: 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -34,7 +34,7 @@
<%= export_csv_encoding_select_tag %>
<p class="buttons">
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button', :data => { :disable_with => false } %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
</div>
......
......@@ -4,6 +4,6 @@
<%= render :partial => 'versions/form', :locals => { :f => f } %>
<p class="buttons">
<%= submit_tag l(:button_create), :name => nil %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -26,6 +26,6 @@
<p class="buttons">
<%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
......@@ -24,6 +24,6 @@
<p class="buttons">
<%= submit_tag l(:label_next), :name => nil %>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
</p>
<% end %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment