* Format code style.

This commit is contained in:
zhujinyong
2021-03-17 11:33:57 +08:00
parent 6c5d084938
commit adeec9e34a
6 changed files with 25 additions and 10 deletions
+11 -4
View File
@@ -208,13 +208,19 @@ $(function()
var offset = $e.offset();
var winWidth = $(window).width();
var placement = 'top';
if (offset.left > (winWidth*2/3)) {
if(offset.left > (winWidth*2/3))
{
placement = 'left';
} else if (offset.left < (winWidth/3) && (offset.left + $e.outerWidth()) < (winWidth*2/3)) {
}
else if(offset.left < (winWidth/3) && (offset.left + $e.outerWidth()) < (winWidth*2/3))
{
placement = 'right';
} else if (offset.top < 50) {
}
else if (offset.top < 50)
{
placement = 'bottom';
}
options = $.extend(
{
trigger: 'manual',
@@ -334,7 +340,8 @@ $(function()
e.preventDefault();
e.stopPropagation();
return false;
} else
}
else
{
finishTask();
}