@@ -387,6 +387,14 @@ function initializeDataTable() {
387
387
data : "candidate_urls_count" ,
388
388
class : "text-center whiteText" ,
389
389
sortable : true ,
390
+ render : function ( data , type , row ) {
391
+ return `<div style="display: flex; align-items: center; justify-content: center;">
392
+ <span style="min-width: 50px; text-align: right; padding-right: 10px;">${ data } </span>
393
+ <button type="button" class="btn btn-sm view-affected-urls" data-row-id="${ row . id } ">
394
+ <i class="fa fa-eye"></i>
395
+ </button>
396
+ </div>` ;
397
+ } ,
390
398
} ,
391
399
{
392
400
data : null ,
@@ -813,6 +821,7 @@ function setupClickHandlers() {
813
821
handleDeleteIncludePatternButtonClick ( ) ;
814
822
handleDeleteTitlePatternButtonClick ( ) ;
815
823
handleDeleteDivisionButtonClick ( ) ;
824
+ handleShowAffectedURLsListButtonClick ( ) ;
816
825
817
826
handleDocumentTypeSelect ( ) ;
818
827
handleDivisionSelect ( ) ;
@@ -1126,6 +1135,14 @@ function handleExcludeIndividualUrlClick() {
1126
1135
} ) ;
1127
1136
}
1128
1137
1138
+ function handleShowAffectedURLsListButtonClick ( ) {
1139
+ $ ( "body" ) . on ( "click" , ".view-affected-urls" , function ( ) {
1140
+ var matchPatternId = $ ( this ) . data ( "row-id" ) ;
1141
+ console . log ( matchPatternId ) ;
1142
+ } ) ;
1143
+ }
1144
+
1145
+
1129
1146
function handleDeleteExcludePatternButtonClick ( ) {
1130
1147
$ ( "body" ) . on ( "click" , ".delete-exclude-pattern-button" , function ( ) {
1131
1148
var patternRowId = $ ( this ) . data ( "row-id" ) ;
0 commit comments