From e04fb76a49046a8441292ef8964c2850c77b2d97 Mon Sep 17 00:00:00 2001 From: Dario Milicic Date: Mon, 27 Oct 2014 11:30:15 +0100 Subject: [PATCH] Fixed the absolute URL in the plugin dndfiles to be relative. --- scripts/ckeditor/plugins/dndfiles/plugin.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/ckeditor/plugins/dndfiles/plugin.js b/scripts/ckeditor/plugins/dndfiles/plugin.js index 4cbd88d3..5a230e59 100755 --- a/scripts/ckeditor/plugins/dndfiles/plugin.js +++ b/scripts/ckeditor/plugins/dndfiles/plugin.js @@ -40,8 +40,6 @@ CKEDITOR.plugins.add( 'dndfiles', { event.stopPropagation(); event.preventDefault(); - console.log("start"); - iframeHTML.css('box-shadow', 'inset 0px 0px 10px 1px #999998'); return false; @@ -52,14 +50,11 @@ CKEDITOR.plugins.add( 'dndfiles', { iframeHTML.css('box-shadow', '0px 0px 0px 0px #999999'); - console.log("end"); return false; }, 'drop' : function(e) { e.preventDefault(); - console.log("drop"); - iframeHTML.css('box-shadow', '0px 0px 0px 0px #999999'); // Upload dropped files @@ -98,7 +93,7 @@ CKEDITOR.plugins.add( 'dndfiles', { // now post a new XHR request if (tests.formdata) { - var URL = '/' + parent.logbook + '/upload.html?next_attachment=' + parent.next_attachment; + var URL = 'upload.html?next_attachment=' + parent.next_attachment; $.ajax({ xhr: function()