diff --git a/application/third_party/order/views/confirm_order.php b/application/third_party/order/views/confirm_order.php
index 191961bb..3259c14b 100644
--- a/application/third_party/order/views/confirm_order.php
+++ b/application/third_party/order/views/confirm_order.php
@@ -1068,7 +1068,7 @@ select.gender_pick {border: 1px solid #d1d1d1;
-
+
@@ -1163,13 +1163,31 @@ select.gender_pick {border: 1px solid #d1d1d1;
// console.info('json: ', json);
});
- $('#uploadBtn').on('click', function(e) {
- e.preventDefault();
- const files = $('#fileInput')[0].files;
+ // $('#uploadBtn').on('click', function(e) {
+ // e.preventDefault();
+ // const files = $('#fileInput')[0].files;
+
+ // if (files.length === 0) {
+ // e.preventDefault();
+ // alert('Please select a file.');
+ // return;
+ // }
+
+ // $('#progressSection').show();
+ // $('#uploadBtn').prop('disabled', true);
+
+ // startUpload(files, function() {
+ // $('#progressSection').hide();
+ // $('#uploadBtn').prop('disabled', false);
+ // $('#fileInput').val('');
+ // });
+ // });
+
+ $('#fileInput').on('change', function(e) {
+ const files = e.target.files;
if (files.length === 0) {
- e.preventDefault();
- alert('Please select a file.');
+ console.info('Please select a file.');
return;
}