* modify stopPropagation
This commit is contained in:
@@ -99,9 +99,9 @@ $(function()
|
||||
{
|
||||
$.zui.ContextMenu.hide();
|
||||
});
|
||||
|
||||
$('.project-popover').on('click', function()
|
||||
$('.project-popover').on('click', function(e)
|
||||
{
|
||||
e.stopPropagation();
|
||||
var showPopover = $(this).next().css('display') == 'block';
|
||||
$('.popover.right').hide();
|
||||
if(!showPopover) $(this).next().show();
|
||||
@@ -116,7 +116,7 @@ $(function()
|
||||
$(document).on('mousedown', function(e)
|
||||
{
|
||||
var $target = $(e.target);
|
||||
var $toggle = $target.closest('.popover');
|
||||
var $toggle = $target.closest('.popover, .project-popover');
|
||||
if(!$toggle.length) $('.popover.right').hide();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<style>
|
||||
#taskPopover .arrow {margin-top: -55px;}
|
||||
</style>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php common::sortFeatureMenu();?>
|
||||
@@ -150,7 +153,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$projectHtml = '<div class="popover right">';
|
||||
$projectHtml = '<div class="popover right" id="taskPopover">';
|
||||
$projectHtml .= '<div class="arrow"></div>';
|
||||
$projectHtml .= '<div class="popover-content">';
|
||||
$projectHtml .= '<ul class="execution-tip">';
|
||||
|
||||
Reference in New Issue
Block a user