All absolute URLs that were used for uploading files are now relative.

This commit is contained in:
Dario Milicic 2014-10-23 11:38:14 +02:00
parent 09ec13b966
commit 39f100a402
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ CKEDITOR.dialog.add( 'fileuploadDialog', function( editor ) {
}
formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload
var URL = '/' + parent.logbook + '/upload.html?next_attachment=' + parent.next_attachment;
var URL = 'upload.html?next_attachment=' + parent.next_attachment;
$.ajax({
xhr: function()

View File

@ -572,7 +572,7 @@ CKEDITOR.dialog.add( 'image2', function( editor ) {
}
formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload
var URL = '/' + parent.logbook + '/upload.html?next_attachment=' + parent.next_attachment;
var URL = 'upload.html?next_attachment=' + parent.next_attachment;
$.ajax({
xhr: function()

View File

@ -144,7 +144,7 @@ $(document).ready(function() {
formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload
if (tests.formdata) {
var URL = '/' + parent.logbook + '/upload.html?next_attachment=' + parent.next_attachment;
var URL = 'upload.html?next_attachment=' + parent.next_attachment;
// set the flag so the chkupload validator doesn't trigger
uploading_dropped_files = true;