##// END OF EJS Templates
Removed cast to int for the bumplimit progress bar, cause CSS understands float values
Removed cast to int for the bumplimit progress bar, cause CSS understands float values

File last commit:

r223:59ce9646 default
r284:19ad65b5 default
Show More
popup.js
44 lines | 1.2 KiB | application/javascript | JavascriptLexer
neko259
Added hover popups for the reflinks.
r222 /**
* Created with IntelliJ IDEA.
* User: vurdalak
* Date: 21.09.13
* Time: 15:21
* To change this template use File | Settings | File Templates.
*/
function addPopups() {
$('a').each(function() {
if($(this).text().indexOf('>>') == 0) {
var refNum = $(this).text().match(/\d+/);
if (refNum != null) {
var self = $(this);
neko259
Cleaned up popups function in JS.
r223 $(this).mouseenter(function() {
neko259
Added hover popups for the reflinks.
r222 $.get('/get_post/' + refNum, function(data) {
var popup = $('<div/>').html(data)
popup.dialog({
modal: false,
minHeight: 0,
});
neko259
Cleaned up popups function in JS.
r223
neko259
Added hover popups for the reflinks.
r222 popup.position({
my: "left+20 top+20",
at: "right bottom",
of: self
})
self.mouseleave(function() {
if (popup != null) {
popup.remove();
}
});
})
});
}
}
});
}