Skip to content
Snippets Groups Projects
Commit 8dfaf496 authored by gnaegi's avatar gnaegi
Browse files

OO-1068 hack to display mouse over text for link and qrcode share

parent 3b004e79
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@
<a id="o_link" href="javascript:;" title="$r.translateInAttribute("share.link")">
<i class="o_icon o_icon_link o_icon-lg"></i>
</a>
<a id="o_qrcode" href="javascript:;">
<a id="o_qrcode" href="javascript:;" title="$r.translateInAttribute("share.qrcode")">
<i class="o_icon o_icon_qrcode o_icon-lg"></i>
</a>
<script type="text/javascript">
......
......@@ -936,8 +936,8 @@ function o_popover(id, contentId, loc) {
function o_shareLinkPopup(id, text, loc) {
if(typeof(loc)==='undefined') loc = 'top';
jQuery('#' + id).popover({
var elem = jQuery('#' + id);
elem.popover({
placement : loc,
html: true,
trigger: 'click',
......@@ -954,11 +954,14 @@ function o_shareLinkPopup(id, text, loc) {
jQuery('body').on('click', clickListener);
}, 5);
});
// make mouse over link text work again
elem.attr('title',elem.attr('data-original-title'));
}
function o_QRCodePopup(id, text, loc) {
if(typeof(loc)==='undefined') loc = 'top';
jQuery('#' + id).popover({
var elem = jQuery('#' + id);
elem.popover({
placement : loc,
html: true,
trigger: 'click',
......@@ -981,6 +984,8 @@ function o_QRCodePopup(id, text, loc) {
delete o_info.qr;
} catch(e) {}
});
// make mouse over link text work again
elem.attr('title',elem.attr('data-original-title'));
}
function o_QRCode(id, text) {
// dynamically load qr code library
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment