[Rt-commit] rt branch, 4.4/dropzone-webpath-fix, created. rt-4.2.12-353-g7b5129f

? sunnavy sunnavy at bestpractical.com
Thu Oct 29 13:10:05 EDT 2015


The branch, 4.4/dropzone-webpath-fix has been created
        at  7b5129f832cd444e4b27bfb870214e5b5e07e073 (commit)

- Log -----------------------------------------------------------------
commit 7b5129f832cd444e4b27bfb870214e5b5e07e073
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 30 00:52:53 2015 +0800

    fix WebPath for dropzone helper urls
    
    Fixes: I#31320

diff --git a/share/html/Ticket/Elements/AddAttachments b/share/html/Ticket/Elements/AddAttachments
index d31352d..5eb0e41 100644
--- a/share/html/Ticket/Elements/AddAttachments
+++ b/share/html/Ticket/Elements/AddAttachments
@@ -66,7 +66,7 @@
 Dropzone.autoDiscover = false;
 jQuery( function() {
     var attachDropzone = new Dropzone('#attach-dropzone', {
-        url: '/Helpers/Upload/Add?Token=' + jQuery('#attach-dropzone').closest('form').find('input[name=Token]').val(),
+        url: '<% RT->Config->Get('WebPath') %>/Helpers/Upload/Add?Token=' + jQuery('#attach-dropzone').closest('form').find('input[name=Token]').val(),
         paramName: "Attach",
         dictDefaultMessage: <% loc("Drop files here or click to attach") |n,j %>,
         maxFilesize: 10000,
@@ -127,7 +127,7 @@ jQuery( function() {
         }
     });
     attachDropzone.on('removedfile', function(file) {
-        jQuery.post('/Helpers/Upload/Delete', { Name: file.name, Token: jQuery('#attach-dropzone').closest('form').find('input[name=Token]').val() }, 'json');
+        jQuery.post('<% RT->Config->Get('WebPath') %>/Helpers/Upload/Delete', { Name: file.name, Token: jQuery('#attach-dropzone').closest('form').find('input[name=Token]').val() }, 'json');
     });
     attachDropzone.on('dragenter', function() {
         jQuery('#attach-dropzone').addClass('scaled');

-----------------------------------------------------------------------


More information about the rt-commit mailing list