# HG changeset patch # User neko259 # Date 2013-09-21 14:27:38 # Node ID 59ce964635dfbc8ed69b58ddec9abab7438ec2bc # Parent 5ed24b1343eaa26dfbcb561d98567e1c30434376 Cleaned up popups function in JS. diff --git a/boards/static/js/popup.js b/boards/static/js/popup.js --- a/boards/static/js/popup.js +++ b/boards/static/js/popup.js @@ -15,15 +15,15 @@ function addPopups() { if (refNum != null) { var self = $(this); - $(this).mouseenter(function(e) { + $(this).mouseenter(function() { $.get('/get_post/' + refNum, function(data) { var popup = $('
').html(data) - var linkPosition = self.position(); popup.dialog({ modal: false, minHeight: 0, }); + popup.position({ my: "left+20 top+20", at: "right bottom",