Skip to content

Commit

Permalink
Coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Jan 13, 2025
1 parent d34e5de commit b65e0e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
7 changes: 3 additions & 4 deletions assets/timeTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@
}

.timetable {
.recently-deleted-timelog-info > i {
color: var(--itk-color-info);
}
.recently-deleted-timelog-info > i {
color: var(--itk-color-info);
}
.timetable-scroll-container {
overflow-x: auto;
}

#timetable {
background-color: var(--itk-color-white);


.new-week {
border-left: 2px solid var(--itk-border-color) !important;
position: relative;
Expand Down
23 changes: 12 additions & 11 deletions assets/timeTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,14 +625,15 @@ jQuery(document).ready(function ($) {
.then((response) => response.json())
.then((data) => {
if (data.status === "success") {
$('td.timetable-edit-entry[data-id="'+timesheetId+'"]')
.children('span').text('')
.end()
.attr('data-id', '')
.attr('data-hours', '')
.attr('data-description', '');
$('.recently-deleted-timelog-info').removeClass('hidden');
this.closeEditTimeLogModal()
$('td.timetable-edit-entry[data-id="' + timesheetId + '"]')
.children("span")
.text("")
.end()
.attr("data-id", "")
.attr("data-hours", "")
.attr("data-description", "");
$(".recently-deleted-timelog-info").removeClass("hidden");
this.closeEditTimeLogModal();
} else {
alert("An error has occurred");
}
Expand All @@ -647,9 +648,9 @@ jQuery(document).ready(function ($) {
closeEditTimeLogModal() {
this.timeEditModal.removeClass("shown").removeAttr("data-value");
this.timeEditModal.find("input:not([name='action']), textarea").val("");
$(this.modalDeleteButton)
.html('<i class="fa fa-trash"></i>')
.removeClass("deleting");
$(this.modalDeleteButton)
.html('<i class="fa fa-trash"></i>')
.removeClass("deleting");
$(document).off("mousedown", this.boundClickOutsideModalHandler);
}

Expand Down
7 changes: 3 additions & 4 deletions dist/css/timeTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@
}

.timetable {
.recently-deleted-timelog-info > i {
color: var(--itk-color-info);
}
.recently-deleted-timelog-info > i {
color: var(--itk-color-info);
}
.timetable-scroll-container {
overflow-x: auto;
}

#timetable {
background-color: var(--itk-color-white);


.new-week {
border-left: 2px solid var(--itk-border-color) !important;
position: relative;
Expand Down

0 comments on commit b65e0e9

Please sign in to comment.