# HG changeset patch # User Alain Mazy # Date 1548323687 -3600 # Node ID 4cfed5c2eacd850db5654f46dbb0f8192d07c781 # Parent b311cff247cab5a370fd1f88150fec1ec56469d9 added debug info for Orthanc issue #1 diff -r b311cff247ca -r 4cfed5c2eacd OrthancExplorer/file-upload.js --- a/OrthancExplorer/file-upload.js Thu Jan 10 11:19:39 2019 +0100 +++ b/OrthancExplorer/file-upload.js Thu Jan 24 10:54:47 2019 +0100 @@ -1,8 +1,15 @@ var pendingUploads = []; var currentUpload = 0; var totalUpload = 0; +var alreadyInitialized = false; // trying to debug Orthanc issue #1 $(document).ready(function() { + if (alreadyInitialized) { + console.log("Orthanc issue #1: the fileupload has been initialized twice !"); + } else { + alreadyInitialized = true; + } + // Initialize the jQuery File Upload widget: $('#fileupload').fileupload({ //dataType: 'json', @@ -27,7 +34,7 @@ $('#progress .label').text('Failure'); }) .bind('fileuploaddrop', function (e, data) { - console.log("dropped " + data.files.length + " files"); + console.log("dropped " + data.files.length + " files: ", data); appendFilesToUploadList(data.files); }) .bind('fileuploadsend', function (e, data) {