Archived
1
0

Implement feature for deleting posts and improving ajax requests

This commit is contained in:
Marcel
2018-10-17 13:56:22 +02:00
parent b32b2790c8
commit 334aa22362
23 changed files with 193 additions and 96 deletions

View File

@@ -46,7 +46,7 @@ function sendEdit() {
editor.start();
$.ajax({
url: 'http://192.168.178.39/admin/projects/sendEdit',
url: '/admin/projects/sendEdit',
data: data,
method: 'POST',
success: data => {
@@ -128,7 +128,7 @@ $('.upload-btn').on('change', '.upload-image', function () {
$('.uploaded-image-container').css('background-image', `url(${reader.result}`);
$.ajax({
url: 'http://192.168.178.39/admin/files/uploadImage',
url: '/admin/files/uploadImage',
type: 'POST',
data: {
image: reader.result,