summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-07-12 20:06:34 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-07-12 20:06:34 +0200
commit4aec1b1536811cd9964473e676c05ae4823d1876 (patch)
tree3358e94331565c631ef0e4c15e5a0d53e07245b1 /includes/sys_template.php
parentac086614fd65e12e30edda8c8421cada68ec657d (diff)
fix doubleclick bug on user hint popover
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 1c631dbe..001b1f37 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -85,9 +85,18 @@ function toolbar_dropdown($glyphicon, $label, $submenu, $class = '') {
function toolbar_popover($glyphicon, $label, $content, $class = '') {
$id = md5(microtime() . $glyphicon . $label);
return '<li class="dropdown messages ' . $class . '">
- <a id="' . $id . '" href="#" tabindex="0">' . ($glyphicon != '' ? '<span class="glyphicon glyphicon-' . $glyphicon . '"></span> ' : '') . $label . ' <span class="caret"></span></a>
+ <a id="' . $id . '" href="#">' . ($glyphicon != '' ? '<span class="glyphicon glyphicon-' . $glyphicon . '"></span> ' : '')
+ . $label . ' <span class="caret"></span></a>
<script type="text/javascript">
- $(document).ready(function(){$("#' . $id . '").popover({trigger: "click focus", html: true, content: "' . addslashes(join('', $content)) . '", placement: "bottom", container: "#navbar-collapse-1"})});
+ $(function(){
+ $("#' . $id . '").popover({
+ trigger: "focus",
+ html: true,
+ content: "' . addslashes(join('', $content)) . '",
+ placement: "bottom",
+ container: "#navbar-collapse-1"
+ })
+ });
</script></li>';
}