mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 03:36:33 +03:00
Add db prefix for table export files
This commit is contained in:
parent
ae11e469d2
commit
02d598f406
File diff suppressed because one or more lines are too long
@ -213,7 +213,8 @@ function performTableAction(table, action, el) {
|
||||
break;
|
||||
case "export":
|
||||
var format = el.data("format");
|
||||
var filename = table + "." + format;
|
||||
var db = $("#current_database").text();
|
||||
var filename = db + "." + table + "." + format;
|
||||
var query = window.encodeURI("SELECT * FROM " + table);
|
||||
var url = window.location.href.split("#")[0] + "api/query?format=" + format + "&filename=" + filename + "&query=" + query + "&_session_id=" + getSessionId();
|
||||
var win = window.open(url, "_blank");
|
||||
|
Loading…
Reference in New Issue
Block a user