Skip to content

Commit

Permalink
add data-form-id to save & recover buttons publiclab#9004 publiclab#9131
Browse files Browse the repository at this point in the history
  • Loading branch information
noi5e committed Feb 5, 2021
1 parent 3219419 commit 9da4ee0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/editor/_toolbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,21 @@
<div class="btn-group mr-2 ">
<a
id="save-button-<%= toolbar_element_id %>"
data-toggle="tooltip"
class="save-button btn btn-outline-secondary btn-sm"
title="Save"
data-form-id="<%= toolbar_element_id %>"
data-placement="bottom"
onClick="$E.save()"
class="save-button btn btn-outline-secondary btn-sm"
data-toggle="tooltip"
>
<i class="fa fa-save"></i>
</a>
<a
id="recover-button-<%= toolbar_element_id %>"
data-toggle="tooltip"
class="recover-button btn btn-outline-secondary btn-sm"
title="Recover"
data-form-id="<%= toolbar_element_id %>"
data-placement="bottom"
onClick="$E.recover()"
class="recover-button btn btn-outline-secondary btn-sm"
data-toggle="tooltip"
>
Recover
</a>
Expand Down

0 comments on commit 9da4ee0

Please sign in to comment.