gridftp: multiple fixes in handling and presenting errors
[qcg-portal.git] / filex / templates / filex / upload.js.html
index 7b64658..678e4a8 100644 (file)
         });
 
         $(window).on('beforeunload', function() {
-            if ($('#files').fileupload('active'))
+            var $files = $('#files');
+            if ($files.length && $files.fileupload('active'))
                 return 'Nie zakończono przesyłania wszystkich plików, czy chcesz kontynuować?';
         });