Mercurial > hg > orthanc
changeset 3160:fc9a4a2dad63
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 24 Jan 2019 10:55:19 +0100 |
parents | 4cfed5c2eacd (diff) b6e7714c3fe6 (current diff) |
children | 5cf29046c159 |
files | Core/HttpServer/MongooseServer.cpp Core/HttpServer/MongooseServer.h OrthancExplorer/file-upload.js OrthancServer/DatabaseWrapper.cpp OrthancServer/DatabaseWrapper.h OrthancServer/IDatabaseListener.h OrthancServer/IDatabaseWrapper.h OrthancServer/PrepareDatabase.sql OrthancServer/Search/IFindConstraint.cpp OrthancServer/Search/IFindConstraint.h OrthancServer/Search/ListConstraint.cpp OrthancServer/Search/ListConstraint.h OrthancServer/Search/LookupIdentifierQuery.cpp OrthancServer/Search/LookupIdentifierQuery.h OrthancServer/Search/LookupResource.cpp OrthancServer/Search/LookupResource.h OrthancServer/Search/RangeConstraint.cpp OrthancServer/Search/RangeConstraint.h OrthancServer/Search/SetOfResources.cpp OrthancServer/Search/SetOfResources.h OrthancServer/Search/ValueConstraint.cpp OrthancServer/Search/ValueConstraint.h OrthancServer/Search/WildcardConstraint.cpp OrthancServer/Search/WildcardConstraint.h OrthancServer/Upgrade3To4.sql OrthancServer/Upgrade4To5.sql |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancExplorer/file-upload.js Wed Jan 23 14:23:10 2019 +0100 +++ b/OrthancExplorer/file-upload.js Thu Jan 24 10:55:19 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) {