File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments