diff 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
line wrap: on
line diff
--- a/OrthancExplorer/file-upload.js	Wed Dec 26 11:15:17 2018 +0100
+++ b/OrthancExplorer/file-upload.js	Wed Dec 26 16:58:21 2018 +0100
@@ -47,7 +47,7 @@
 
 
 
-$('#upload').live('pageshow', function() {
+$(document).on("pageshow", "#upload", function() {
   alert('WARNING - This page is currently affected by Orthanc issue #21: ' +
         '"DICOM files might be missing after uploading with Mozilla Firefox." ' +
         'Do not use this upload feature for clinical uses, or carefully ' +
@@ -56,12 +56,12 @@
   $('#fileupload').fileupload('enable');
 });
 
-$('#upload').live('pagehide', function() {
+$(document).on("pagehide", "#upload", function() {
   $('#fileupload').fileupload('disable');
 });
 
 
-$('#upload-button').live('click', function() {
+$(document).on("click", "#upload-button", function(e) {
   let pu = pendingUploads;
   pendingUploads = [];
 
@@ -82,12 +82,12 @@
   }
 });
 
-$('#upload-clear').live('click', function() {
+$(document).on("click", "#upload-clear", function(e) {
   pendingUploads = [];
   $('.pending-file').remove();
   $('#upload-list').listview('refresh');
 });
 
-/*$('#upload-abort').live('click', function() {
+/*$('#upload-abort').on('click', function() {
   $('#fileupload').fileupload().abort();
   });*/