Skip to content

Commit

Permalink
Initialize clickable-row within datatable
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Aug 7, 2018
1 parent e2c6a95 commit d24b809
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/javascripts/authorized_users.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ $(document).ready(function() {
});

$('table').DataTable({
clickablerow: clickRow
});

function clickRow() {
$(".clickable-row").click(function() {
window.location = $(this).data("href");
});
});
}
} );

0 comments on commit d24b809

Please sign in to comment.