Skip to content

Commit

Permalink
Add "Ctrl+Enter to submit" hint beneath tag box (#4661)
Browse files Browse the repository at this point in the history
  • Loading branch information
evazion committed Jan 6, 2021
1 parent 65be2c9 commit 6f93b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/posts/partials/show/_edit.html.erb
Expand Up @@ -54,7 +54,7 @@
</div>

<div>
<%= f.input :tag_string, label: false, input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.presenter.split_tag_list_text + " " } %>
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.presenter.split_tag_list_text + " " } %>
</div>

<%= render "related_tags/buttons" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/uploads/new.html.erb
Expand Up @@ -69,7 +69,7 @@
<a href="javascript:void(0)"><i id="open-edit-dialog" class="fas fa-external-link-alt" title="detach" data-shortcut="shift+e"></i></a>
</div>

<%= f.input :tag_string, label: false, input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: params[:tag_string] } %>
<%= f.input :tag_string, label: false, hint: "Ctrl+Enter to submit", input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: params[:tag_string] } %>
<%= render "related_tags/buttons" %>
</div>

Expand Down

0 comments on commit 6f93b77

Please sign in to comment.