Fixed the absolute URL in the plugin dndfiles to be relative.

This commit is contained in:
Dario Milicic 2014-10-27 11:30:15 +01:00
parent f8d2dcb11f
commit e04fb76a49

View File

@ -40,8 +40,6 @@ CKEDITOR.plugins.add( 'dndfiles', {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
console.log("start");
iframeHTML.css('box-shadow', 'inset 0px 0px 10px 1px #999998'); iframeHTML.css('box-shadow', 'inset 0px 0px 10px 1px #999998');
return false; return false;
@ -52,14 +50,11 @@ CKEDITOR.plugins.add( 'dndfiles', {
iframeHTML.css('box-shadow', '0px 0px 0px 0px #999999'); iframeHTML.css('box-shadow', '0px 0px 0px 0px #999999');
console.log("end");
return false; return false;
}, },
'drop' : function(e) { 'drop' : function(e) {
e.preventDefault(); e.preventDefault();
console.log("drop");
iframeHTML.css('box-shadow', '0px 0px 0px 0px #999999'); iframeHTML.css('box-shadow', '0px 0px 0px 0px #999999');
// Upload dropped files // Upload dropped files
@ -98,7 +93,7 @@ CKEDITOR.plugins.add( 'dndfiles', {
// now post a new XHR request // now post a new XHR request
if (tests.formdata) { if (tests.formdata) {
var URL = '/' + parent.logbook + '/upload.html?next_attachment=' + parent.next_attachment; var URL = 'upload.html?next_attachment=' + parent.next_attachment;
$.ajax({ $.ajax({
xhr: function() xhr: function()