Ignore:
Timestamp:
2023-09-28T15:43:34+13:00 (9 months ago)
Author:
anupama
Message:

We don't need data- attributes for username, usercomment and timestamp any more, now that we have data-metapos, which is all we're using now for remove-metadata-array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/user_comments.js

    r38238 r38248  
    213213    deleteCheckBox.setAttribute("class", "del-me-comment");
    214214    deleteCheckBox.setAttribute("data-metapos", metapos);
    215     deleteCheckBox.setAttribute("data-username", username);
    216     deleteCheckBox.setAttribute("data-timestamp", timestamp);
    217     deleteCheckBox.setAttribute("data-comment", comment);
     215    //deleteCheckBox.setAttribute("data-username", username);
     216    //deleteCheckBox.setAttribute("data-timestamp", timestamp);
     217    //deleteCheckBox.setAttribute("data-comment", comment);
    218218    divgroup.appendChild(deleteCheckBox);
    219219    }
     
    267267    }
    268268   
    269     //document.querySelectorAll('input[class=del-me-comment][type=checkbox]:checked').forEach(elem => console.log(elem.getAttribute('data-username')));
     269    //document.querySelectorAll('input[class=del-me-comment][type=checkbox]:checked').forEach(elem => console.log(elem.getAttribute('data-metapos')));
    270270
    271271    var metadataPositions = [];
Note: See TracChangeset for help on using the changeset viewer.