Use base url in JS files

This commit is contained in:
Alex Ling
2020-05-23 13:15:54 +00:00
parent eefa8c3982
commit 4a59459773
6 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
$(() => {
var target = '/admin/user/edit';
var target = base_url + 'admin/user/edit';
if (username) target += username;
$('form').attr('action', target);
if (error) alert('danger', error);