Skip to content

Commit

Permalink
Yarn cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed Mar 31, 2023
1 parent 3e0057e commit 433107c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/assets/javascripts/edit_work_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,14 @@ $(() => {
// https://datatables.net/reference/type/row-selector
const filename = $(el.target).data('filename');
const filesTable = $('#files-table').DataTable();
const rowId = "#" + filename;
const rowId = `#{filename`;
const row = filesTable.row(rowId).data();
row.filename_display = "* " + row.filename_display;
row.filename_display = `* #{row.filename_display}`;
filesTable.row(rowId).invalidate();

// Keep track of the deleted file, we do this via a hidden textbox with the name of the file to delete.
// (this information will be submitted to the server when the user hits save)
// Keep track of the deleted file, we do this via a hidden textbox with
// the name of the file to delete. This information will be submitted
// to the server when the user hits save.
const deleteCount = incrementCounter('#deleted_files_count');
const sequenceId = `deleted_file_${deleteCount}`;
const deletedFileHtml = `<input class="hidden deleted-file-tracker" type="text" id="${sequenceId}" name="work[${sequenceId}]" value="${filename}" />`
Expand Down

0 comments on commit 433107c

Please sign in to comment.