Skip to content

Commit

Permalink
Fixes #1319
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSpy committed Feb 2, 2016
1 parent 81821fc commit bc87410
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions module/Application/public/assets/js/jquery.ui.timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,22 @@
txt += '</p>';
me.popover({
content: txt,
trigger:'focus',
placement:'auto top',
html: 'true',
viewport: '#timeline'
}).popover('show');
me.parents('.elmt').tooltip('hide');
});

//fermeture des popover sur clic en dehors
this.element.on('click', function (e) {
self.element.find('.tooltip-evt').each(function () {
// hide any open popovers when the anywhere else in the body is clicked
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
$(this).popover('destroy');
}
});
});

this.element.on('click', '.add-note', function(e){
e.preventDefault();
$("#add-note").data('id', $(this).data('id'));
Expand Down

0 comments on commit bc87410

Please sign in to comment.