Skip to content

Commit

Permalink
Merge pull request self-xdsd#304 from criske/issue302
Browse files Browse the repository at this point in the history
self-xdsd#302 Fixed Broken Contract Agenda Button on Contributor Dashboard.
  • Loading branch information
amihaiemil authored Jan 1, 2021
2 parents 89089b0 + 9134dfc commit 6548a35
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/resources/public/js/getContributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ function getContributorDashboard() {
$("#contributorDashboard").removeClass("d-none");
$("#contributorDashboard").addClass("show");
$("#contractsTable .contractAgenda").each(function () {
$(this).on("click", () => {
$(this).on("click", function() {
var data = $("#contractsTable").DataTable().row($(this).parents('tr')).data()
var contract = {
id: {
repoFullName: $(data[0]).text(),
role: data[1]
}
}
getTasksOfContract(contract);
getInvoicesOfContract(contract);
});
Expand Down

0 comments on commit 6548a35

Please sign in to comment.