File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
resources/html/default/templates Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 78
78
if ( typeof ( thequery ) !== 'undefined' && thequery != null ) {
79
79
yasgui . getTab ( ) . yasqe . setValue ( thequery )
80
80
}
81
+ yasgui . getTab ( ) . yasr . on ( "drawn" , function ( event ) {
82
+ $ ( '.iri' ) . each ( function ( i , obj ) {
83
+ console . log ( obj )
84
+ if ( $ ( this ) . attr ( "href" ) . includes ( baseurl ) ) {
85
+ $ ( this ) . attr ( "href" , $ ( this ) . attr ( "href" ) . replace ( baseurl , "" ) )
86
+ }
87
+ } )
88
+ } )
81
89
const myEngine = new Comunica . QueryEngine ( )
82
- document . getElementsByClassName ( 'yasqe_buttons' ) [ 0 ] . appendChild ( document . getElementById ( 'query' ) ) ;
90
+ document . getElementsByClassName ( 'yasqe_buttons' ) [ 0 ] . appendChild ( document . getElementById ( 'query' ) ) ;
83
91
84
92
//yasgui.getTab().yasqe.on("query", function(event){ console.log(event); event.preventDefault(); queryFile()});
85
93
115
123
executionTime : 1000 // ms
116
124
// error to show
117
125
} )
118
- $ ( '.iri' ) . each ( function ( i , obj ) {
119
- if ( $ ( this ) . attr ( "href" ) . includes ( baseurl ) ) {
120
- $ ( this ) . attr ( "href" , $ ( this ) . attr ( "href" ) . replace ( baseurl , "" ) )
121
- }
122
- } )
126
+
123
127
// Draw results with current plugin
124
128
//yasgui.getTab().yasr.draw()
125
129
}
You can’t perform that action at this time.
0 commit comments