Add db prefix for table export files

This commit is contained in:
Dan Sosedoff 2017-11-30 22:47:42 -06:00
parent ae11e469d2
commit 02d598f406
2 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -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");