Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web_src/js/features/repo-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function moveIssue({item, from, to, oldIndex}) {

const columnSorting = {
issues: Array.from(columnCards, (card, i) => ({
issueID: parseInt($(card).attr('data-issue')),
issueID: parseInt(card.getAttribute('data-issue')),
sorting: i,
})),
};
Expand Down Expand Up @@ -134,7 +134,7 @@ export function initRepoProject() {
if ($projectColorInput.val()) {
setLabelColor($projectHeader, $projectColorInput.val());
}
$boardColumn.attr('style', `background: ${$projectColorInput.val()}!important`);
$boardColumn[0].style = `background: ${$projectColorInput.val()} !important`;
$('.ui.modal').modal('hide');
}
});
Expand All @@ -159,9 +159,9 @@ export function initRepoProject() {
});

$('.show-delete-project-column-modal').each(function () {
const $deleteColumnModal = $(`${$(this).attr('data-modal')}`);
const $deleteColumnModal = $(`${this.getAttribute('data-modal')}`);
const $deleteColumnButton = $deleteColumnModal.find('.actions > .ok.button');
const deleteUrl = $(this).attr('data-url');
const deleteUrl = this.getAttribute('data-url');

$deleteColumnButton.on('click', async (e) => {
e.preventDefault();
Expand Down