comparison OrthancExplorer/file-upload.js @ 3066:5713952f60c0 update-jquery

upgraded jquery, jquery-mobile, jquery-file-upload. Everything seems to be working as before. Theme has changed !
author am@osimis.io
date Wed, 26 Dec 2018 16:58:21 +0100
parents c9c2faf76bec
children
comparison
equal deleted inserted replaced
3065:b89a4288d605 3066:5713952f60c0
45 }); 45 });
46 }); 46 });
47 47
48 48
49 49
50 $('#upload').live('pageshow', function() { 50 $(document).on("pageshow", "#upload", function() {
51 alert('WARNING - This page is currently affected by Orthanc issue #21: ' + 51 alert('WARNING - This page is currently affected by Orthanc issue #21: ' +
52 '"DICOM files might be missing after uploading with Mozilla Firefox." ' + 52 '"DICOM files might be missing after uploading with Mozilla Firefox." ' +
53 'Do not use this upload feature for clinical uses, or carefully ' + 53 'Do not use this upload feature for clinical uses, or carefully ' +
54 'check that all instances have been properly received by Orthanc. ' + 54 'check that all instances have been properly received by Orthanc. ' +
55 'Please use the command-line "ImportDicomFiles.py" script to circumvent this issue.'); 55 'Please use the command-line "ImportDicomFiles.py" script to circumvent this issue.');
56 $('#fileupload').fileupload('enable'); 56 $('#fileupload').fileupload('enable');
57 }); 57 });
58 58
59 $('#upload').live('pagehide', function() { 59 $(document).on("pagehide", "#upload", function() {
60 $('#fileupload').fileupload('disable'); 60 $('#fileupload').fileupload('disable');
61 }); 61 });
62 62
63 63
64 $('#upload-button').live('click', function() { 64 $(document).on("click", "#upload-button", function(e) {
65 let pu = pendingUploads; 65 let pu = pendingUploads;
66 pendingUploads = []; 66 pendingUploads = [];
67 67
68 $('.pending-file').remove(); 68 $('.pending-file').remove();
69 $('#upload-list').listview('refresh'); 69 $('#upload-list').listview('refresh');
80 for (let i = 0; i < pu.length; i++) { 80 for (let i = 0; i < pu.length; i++) {
81 pu[i].submit(); 81 pu[i].submit();
82 } 82 }
83 }); 83 });
84 84
85 $('#upload-clear').live('click', function() { 85 $(document).on("click", "#upload-clear", function(e) {
86 pendingUploads = []; 86 pendingUploads = [];
87 $('.pending-file').remove(); 87 $('.pending-file').remove();
88 $('#upload-list').listview('refresh'); 88 $('#upload-list').listview('refresh');
89 }); 89 });
90 90
91 /*$('#upload-abort').live('click', function() { 91 /*$('#upload-abort').on('click', function() {
92 $('#fileupload').fileupload().abort(); 92 $('#fileupload').fileupload().abort();
93 });*/ 93 });*/