summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-12-05 09:29:59 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-12-05 09:29:59 (GMT)
commitd911928d7fba97e0ebecafa53853ce94df59bf61 (patch)
treeeefefbfc45e8ab0c6db0892edfcd2becfa7ba405
parent65b28dfbd4bed19f243385635b0eed2e93f3a14f (diff)
downloadtabellio.pfbviews-d911928d7fba97e0ebecafa53853ce94df59bf61.zip
tabellio.pfbviews-d911928d7fba97e0ebecafa53853ce94df59bf61.tar.gz
tabellio.pfbviews-d911928d7fba97e0ebecafa53853ce94df59bf61.tar.bz2
position deputy tooltip in hemicycle
-rw-r--r--tabellio/pfbviews/hemicycle.pt5
1 files changed, 3 insertions, 2 deletions
diff --git a/tabellio/pfbviews/hemicycle.pt b/tabellio/pfbviews/hemicycle.pt
index 80f7706..ff96373 100644
--- a/tabellio/pfbviews/hemicycle.pt
+++ b/tabellio/pfbviews/hemicycle.pt
@@ -33,6 +33,7 @@
jq('#hemicycle area').click(
function(event) {
var url = $(this).attr('href');
+ var coords = $(this).attr('coords').split(',');
parldiv = jq('#'+url.split('#')[1]);
if (parldiv.css('display') != 'none') {
parldiv.fadeOut();
@@ -42,8 +43,8 @@ jq('#hemicycle area').click(
jq('#deputies-list div div').show();
parldiv.click(function(event){jq(this).hide();});
parldiv.css('position', 'absolute').css(
- 'top', 6+jq(this).position().top).css(
- 'left', 6+jq(this).position().left).fadeIn()
+ 'top', coords[0] + 'px').css(
+ 'left', coords[1] + 'px').fadeIn()
return false;
});
</script>