diff --git a/R/shiny.R b/R/shiny.R index 487b150..4a697a9 100644 --- a/R/shiny.R +++ b/R/shiny.R @@ -12,6 +12,7 @@ checkbox_callback <- DT::JS( "var rowIdx = table.row($(this).closest('tr')).index();", "var ids = cell.data().ids;", "var review = $(this).is(':indeterminate') ? null : $(this).is(':checked');", + "cell.data().updated = review;", "var info = {review: review, ids: ids, row: tblId + '_row_' + rowIdx};", "Shiny.setInputValue(tblId + '_review_selection:CS.reviewInfo', info);", "})" @@ -20,9 +21,10 @@ checkbox_callback <- DT::JS( checkbox_render <- DT::JS( "function(data, type, row, meta) {", "var reviewed = data.reviewed;", + "var updated = data.updated;", "return ``;", "}" )