- report filter URI encoding fixed
This commit is contained in:
parent
144c62f9ad
commit
9e209df51f
@ -373,13 +373,13 @@ function list_results_by_game(game) {
|
|||||||
|
|
||||||
function generate_game_report_by_groups() {
|
function generate_game_report_by_groups() {
|
||||||
let gameid = EDITED_GAME["_id"];
|
let gameid = EDITED_GAME["_id"];
|
||||||
let filter = document.getElementById("report_filter").value.trim();
|
let filter = encodeURIComponent(document.getElementById("report_filter").value.trim());
|
||||||
let groups = document.getElementById("report_groups").value.trim();
|
let groups = encodeURIComponent(document.getElementById("report_groups").value.trim());
|
||||||
let best_only = document.getElementById("best_only").checked ? "true" : "false";
|
let best_only = document.getElementById("best_only").checked ? "true" : "false";
|
||||||
let outtype = document.getElementById("report_output_type").value;
|
let outtype = document.getElementById("report_output_type").value;
|
||||||
|
|
||||||
let report_url = `interface.php?action=generate_report_by_groups&gameid=${gameid}&groups=${groups}&filter=${filter}&outtype=${outtype}&best_only=${best_only}`;
|
let report_url = `interface.php?action=generate_report_by_groups&gameid=${gameid}&groups=${groups}&filter=${filter}&outtype=${outtype}&best_only=${best_only}`;
|
||||||
report_url = report_url.replaceAll("#", "%23");
|
//report_url = report_url.replaceAll("#", "%23");
|
||||||
window.open(report_url, "_blank");
|
window.open(report_url, "_blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user