mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
All absolute URLs that were used for uploading files are now relative.
This commit is contained in:
parent
09ec13b966
commit
39f100a402
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user