Fix clicking buttons inside popovers

They would work only occasionally because of the way bootstrap handles
popovers with trigger:focus.
Had to change to trigger:click and manually close the popovers when
clicking outside of them or in buttons marked to close popovers.
This commit is contained in:
Leonardo Crauss Daronco
2016-12-07 18:38:53 -02:00
parent 03e9646502
commit 906b21ab0e
2 changed files with 18 additions and 3 deletions

View File

@ -43,10 +43,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<div hidden class="hidden-elements">
<div class="delete-popover-body">
<button type="button" class="btn btn-danger recording-delete">
<button type="button" class="btn btn-danger recording-delete" data-dismiss="popover">
<%= t('yes') %>
</button>
<button type="button" class="btn btn-default">
<button type="button" class="btn btn-default" data-dismiss="popover">
<%= t('no') %>
</button>
</div>