From 180908bfe1f278f0d47d78a675e307c9147cdb8a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 1 Jun 2012 02:07:11 +0200 Subject: [PATCH] Revert "Fix: reload page after file upload completed" This reverts commit 368af101efc216c070b0d62134089167003b318c. --- htdocs/core/tpl/ajax/fileupload_main.tpl.php | 28 +++----------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/htdocs/core/tpl/ajax/fileupload_main.tpl.php b/htdocs/core/tpl/ajax/fileupload_main.tpl.php index af184cdb48c..0ceddff436b 100644 --- a/htdocs/core/tpl/ajax/fileupload_main.tpl.php +++ b/htdocs/core/tpl/ajax/fileupload_main.tpl.php @@ -39,38 +39,16 @@ window.locale = { $(function () { 'use strict'; + var max_file_size = ''; + // Initialize the jQuery File Upload widget: $('#fileupload').fileupload(); // Options $('#fileupload').fileupload('option', { - maxFileSize: '' + maxFileSize: max_file_size }); - // Events - $('#fileupload') - .bind('fileuploaddestroy', function (e, data) { - var that = $(this).data("fileupload"); - if ( confirm("Delete this file ?") == true ) { - if (data.url) { - $.ajax(data).success(function () { - that._adjustMaxNumberOfFiles(1); - $(this).fadeOut(function () { - $(this).remove(); - }); - }); - } else { - data.context.fadeOut(function () { - $(this).remove(); - }); - } - } - }) - .bind('fileuploadcompleted', function (e, data) { - $.ajax(data).success(function () { - location.href=''; - }); - }); }); \ No newline at end of file