projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bad position of the popup in case of window resizing.
[platal.git]
/
htdocs
/
javascript
/
xorg.js
diff --git
a/htdocs/javascript/xorg.js
b/htdocs/javascript/xorg.js
index
20221e2
..
0bd885f
100644
(file)
--- a/
htdocs/javascript/xorg.js
+++ b/
htdocs/javascript/xorg.js
@@
-882,7
+882,6
@@
function sendTestEmail(token, hruid)
function buildPopup(input, destination, linkBindFunction)
{
function buildPopup(input, destination, linkBindFunction)
{
- var pos = findPos(input.get(0));
var $popup = destination;
var selected = null;
var hovered = 0;
var $popup = destination;
var selected = null;
var hovered = 0;
@@
-932,7
+931,6
@@
function sendTestEmail(token, hruid)
position: 'absolute',
width: '300px',
top: input.css('bottom'),
position: 'absolute',
width: '300px',
top: input.css('bottom'),
- left: pos.x - 300 + input.width(),
clear: 'both',
'text-align': 'left'
});
clear: 'both',
'text-align': 'left'
});
@@
-951,7
+949,8
@@
function sendTestEmail(token, hruid)
},
show: function() {
},
show: function() {
- $popup.show();
+ var pos = findPos(input.get(0));
+ $popup.css('left', pos.x - 300 + input.width()).show();
return true;
},
return true;
},