Use Laravel url helpers to improve functionality without dns name (#10227)

* Use Laravel url helpers to improve functionality without dns name
Not exhaustive...

* Fix Url generated urls

* Bump js version
This commit is contained in:
Tony Murray
2019-05-20 11:47:34 -05:00
committed by GitHub
parent 604a200891
commit e9ae08d5db
22 changed files with 66 additions and 69 deletions

View File

@@ -220,7 +220,7 @@ echo "
event.preventDefault();
$.ajax({
type: 'POST',
url: 'ajax/form',
url: '<?php echo url('/ajax/form'); ?>',
data: { type: "callback-statistics", state: state},
dataType: "json",
success: function(data){
@@ -234,7 +234,7 @@ echo "
event.preventDefault();
$.ajax({
type: 'POST',
url: 'ajax/form',
url: '<?php echo url('/ajax/form'); ?>',
data: { type: "callback-clear"},
dataType: "json",
success: function(data){