Skip to content

Commit

Permalink
Merge pull request #2144 from tvdeyen/submit-link-dialog-with-enter
Browse files Browse the repository at this point in the history
Link dialog changes can be submitted by enter
  • Loading branch information
tvdeyen authored Jun 28, 2021
2 parents 52694b3 + af2e35c commit fccc048
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/_anchor_link.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<%= text_field_tag "anchor_link_title", '', class: 'link_title' %>
</div>
<div class="submit">
<%= link_to Alchemy.t(:apply), '', class: 'create-link button', 'data-link-type' => 'anchor' %>
<%= button_tag Alchemy.t(:apply), class: 'create-link button', data: { link_type: 'anchor' } %>
</div>
<% end %>
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/_external_link.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
class: 'alchemy_selectbox link_target' %>
</div>
<div class="submit">
<%= link_to Alchemy.t(:apply), '#', class: 'create-link button', 'data-link-type' => 'external' %>
<%= button_tag Alchemy.t(:apply), class: 'create-link button', data: { link_type: 'external' } %>
</div>
<% end %>
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/_file_link.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
class: 'alchemy_selectbox link_target' %>
</div>
<div class="submit">
<%= link_to Alchemy.t(:apply), '#', class: 'create-link button', 'data-link-type' => 'file' %>
<%= button_tag Alchemy.t(:apply), class: 'create-link button', data: { link_type: 'file' } %>
</div>
<% end %>
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/_internal_link.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
class: 'alchemy_selectbox link_target' %>
</div>
<div class="submit">
<%= link_to Alchemy.t(:apply), '', class: 'create-link button', 'data-link-type' => 'internal' %>
<%= button_tag Alchemy.t(:apply), class: 'create-link button', data: { link_type: 'internal' } %>
</div>
<% end %>

0 comments on commit fccc048

Please sign in to comment.