* Format code style.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user