Jake Vanderwerf
2026-01-04 9bc6a1d6b0894acf827c2c374fffce393bb07814
assets/js/concise/View.js
@@ -370,7 +370,7 @@
      }
      if (Object.hasOwn(this.ui.table.table.dataset, 'edit')) {
         new window.jvbPopulate(row, item.fields, item.images);
         new window.jvbPopulate(row, item);
      } else {
         for (let [key, value] of Object.entries(item)) {
            let col = row.querySelector(`[data-field="${key}"]`);
@@ -415,24 +415,29 @@
      let timelinePoint = row.querySelector('.timeline-point');
      let tbody = row;
      // Populate shared fields - NO prefixing!
      // Populate shared fields
      let sharedRow = row.querySelector('tr.shared');
      new window.jvbPopulate(sharedRow, item.fields, item.images);
      new window.jvbPopulate(sharedRow, item);
      this.prefixTimelineFieldNames(sharedRow, item.id);
      this.cleanupTableRow(sharedRow);
      // Handle timeline points - NO prefixing!
      // Handle timeline points
      if (item.fields.timeline && typeof item.fields.timeline === 'object') {
         const timelineArray = Object.entries(item.fields.timeline);
         timelineArray.forEach(([imgId, timeline], index) => {
            let point = timelinePoint.cloneNode(true);
            point.dataset.index = index;
            point.dataset.imageId = imgId;
            // NEW: Create item-like structure for timeline point
            const timelineItem = {
               fields: timeline,
               images: item.images,
               taxonomies: {} // Timeline points don't have taxonomies
            };
            new window.jvbPopulate(point, timeline, item.images);
            new window.jvbPopulate(point, timelineItem);
            this.cleanupTableRow(point);
            let imgdata = item.images[timeline.post_thumbnail];
@@ -440,7 +445,7 @@
               point.querySelector('.field.upload').title = imgdata['image-title'];
            }
            this.prefixTimelineFieldNames(point,timeline.id);
            this.prefixTimelineFieldNames(point, timeline.id);
            tbody.insertBefore(point, timelinePoint);
         });