Browse Source

commit 优化快捷录入bug

Hai Lin 3 tuần trước cách đây
mục cha
commit
909060bbda
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      templates/add_member.html

+ 6 - 0
templates/add_member.html

@@ -983,6 +983,12 @@
                 metaContainer.style.display = 'none';
             }
             
+            // Update the source_record_id hidden field in the form
+            const sourceRecordIdField = document.querySelector('input[name="source_record_id"]');
+            if (sourceRecordIdField) {
+                sourceRecordIdField.value = img.id;
+            }
+            
             // Reset image state on switch
             resetFilters();