Skip to content

Commit 7fa26c5

Browse files
committed
Fix #23
1 parent 3b5ba3d commit 7fa26c5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

js/display.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
$(function() {
2-
2+
33
/* init some needed tags and values */
4-
4+
55
$('table#data').wrap('<div id="fkcontainer" class="fk" />');
66
$('#fkcontainer').append('<div id="root" />');
7-
8-
jQuery.ppa = {
7+
8+
jQuery.ppa = {
99
root: $('#root')
1010
};
11-
12-
$("a.fk").on('click', function (event) {
11+
12+
$(document).on('click', "a.fk", null, function (event) {
1313
/* make the cursor being a waiting cursor */
1414
$('body').css('cursor','wait');
1515

@@ -54,7 +54,7 @@ $(function() {
5454

5555
/* creating the data div */
5656
newdiv = $('<div class="fk '+divclass+'">').html(answer);
57-
57+
5858
/* highlight referencing fields */
5959
newdiv.data('ref', this).data('refclass', $(this).attr('class').split(' ')[1])
6060
.mouseenter(function (event) {
@@ -76,7 +76,7 @@ $(function() {
7676
$('body').css('cursor','auto');
7777
}
7878
});
79-
79+
8080
return false; // do not refresh the page
8181
});
8282

0 commit comments

Comments
 (0)