diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/sys_template.php | 13 |
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>'; } |