Skip to content
Snippets Groups Projects
Commit 51dabc5d authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Wrong update address fixed

parent 2dfecd59
Branches
No related tags found
No related merge requests found
......@@ -272,7 +272,8 @@
for (var i=0; i < radioElements.length; i++)
if(radioElements[i].checked == true) {
var pathHeader = window.location.href.substring(0,window.location.href.lastIndexOf("${path}"));
window.location.href=pathHeader+"${path}/"+radioElements[i].value+"?formUpdate";
var form = "${path}".indexOf("ocorrenciamunicipais") != -1 ? "?formUpdate" : "?form";
window.location.href=pathHeader+"${path}/"+radioElements[i].value+form;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment