Skip to content

Commit a80c28d

Browse files
committed
FIXED: Download of query results as CSV from the SWISH GUI.
1 parent 4396c81 commit a80c28d

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

web/js/prolog.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,13 @@ define([ "jquery", "config", "form", "preferences",
9696
}
9797
}
9898

99+
let url = config.http.locations.pengines;
100+
if ( !url.endsWith("/") )
101+
url += "/";
102+
url += "create";
103+
99104
formel = $.el.form({ method:"POST",
100-
action:config.http.locations.pengines+"/create",
105+
action:url,
101106
target:"_blank"
102107
},
103108
attr("format", "csv"),

web/js/runner.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,13 @@ define([ "jquery", "config", "preferences", "utils",
193193
}
194194

195195
function refresh() {
196+
let url = config.http.locations.pengines;
197+
if ( !url.endsWith("/") )
198+
url += "/";
199+
url += "list?application=swish";
200+
196201
backend.ajax(
197-
{ url: config.http.locations.pengines + "/list?application=swish",
202+
{ url: url,
198203
type: "GET",
199204
success: function(reply) {
200205
content.empty();
@@ -248,9 +253,13 @@ define([ "jquery", "config", "preferences", "utils",
248253
*/
249254
reattach: function() {
250255
var that = this;
256+
let url = config.http.locations.pengines;
257+
if ( !url.endsWith("/") )
258+
url += "/";
259+
url += "list?application=swish";
251260

252261
backend.ajax(
253-
{ url: config.http.locations.pengines + "/list?application=swish",
262+
{ url: url,
254263
type: "GET",
255264
success: function(reply) {
256265
if ( reply.pengines ) {

0 commit comments

Comments
 (0)