Small changes to test_formatter

This commit is contained in:
cuom1999 2024-01-08 13:06:18 -06:00
parent d7080a4d1b
commit 2b84d62260
4 changed files with 14 additions and 15 deletions

View file

@ -45,7 +45,7 @@
$("#convert").on("click", function(event) {
event.preventDefault()
$.ajax({
url: "{{url('edit_page')}}",
url: "{{url('test_formatter_edit')}}",
type: 'POST',
data: {
action: 'convert',
@ -70,16 +70,15 @@
$(document).ready(function(){
$("#download").on("click", function(event) {
event.preventDefault()
window.location.href = "{{url('edit_page')}}";
$.ajax({
url: "{{url('edit_page')}}",
url: "{{url('test_formatter_edit')}}",
type: 'POST',
data: {
action: 'download'
},
success: function(data) {
var file_path = data;
window.location.href = "{{url('download_page')}}" + "?file_path="+file_path;
window.location.href = "{{url('test_formatter_download')}}" + "?file_path="+file_path;
},
error: function(error) {
alert(error);