##// END OF EJS Templates
Cleaned up popups function in JS.
neko259 -
r223:59ce9646 default
parent child Browse files
Show More
@@ -15,15 +15,15 b' function addPopups() {'
15 if (refNum != null) {
15 if (refNum != null) {
16 var self = $(this);
16 var self = $(this);
17
17
18 $(this).mouseenter(function(e) {
18 $(this).mouseenter(function() {
19 $.get('/get_post/' + refNum, function(data) {
19 $.get('/get_post/' + refNum, function(data) {
20 var popup = $('<div/>').html(data)
20 var popup = $('<div/>').html(data)
21 var linkPosition = self.position();
22
21
23 popup.dialog({
22 popup.dialog({
24 modal: false,
23 modal: false,
25 minHeight: 0,
24 minHeight: 0,
26 });
25 });
26
27 popup.position({
27 popup.position({
28 my: "left+20 top+20",
28 my: "left+20 top+20",
29 at: "right bottom",
29 at: "right bottom",
General Comments 0
You need to be logged in to leave comments. Login now