Skip to content

Commit

Permalink
1744: add sr label to button
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Oct 14, 2024
1 parent d83ee73 commit b53abfc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/Domain/Tickets/Js/ticketsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ leantime.ticketsController = (function () {

var initDueDateTimePickers = function () {
// Reset due date by clicking a button on the task in the dashboard
jQuery("#reset-date").on('click', function ( e, settings, column, state ) {
jQuery("#reset-date").on('click', function () {
// Ticket id for api patch call
const id = jQuery(this).attr("data-id");
// Set date to null to reset
Expand All @@ -785,7 +785,6 @@ leantime.ticketsController = (function () {
// Notify user that due date is updated
jQuery.growl({message: leantime.i18n.__("short_notifications.duedate_updated"), style: "success"});
});

});
leantime.dateController.initDatePicker(".quickDueDates, .duedates", function(date, instance) {
//TODO: Update to use htmx, this is awful
Expand Down
4 changes: 2 additions & 2 deletions app/Domain/Widgets/Templates/partials/myToDos.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ class='active'
</div>
<div class="row">
<div class="col-md-4" style="padding:0 15px;">
<i class="fa-solid fa-business-time infoIcon" data-tippy-content=" {{ __("label.due") }}"></i>
<i class="fa-solid fa-business-time infoIcon" data-tippy-content="{{ __("label.due") }}"></i>
<input type="text" title="{{ __("label.due") }}" value="{{ format($row['dateToFinish'])->date(__("text.anytime")) }}" class="duedates secretInput" style="margin-left:0px;" data-id="{{ $row['id'] }}" name="date" />
<button class="my-to-dos-reset-date-button" data-id="{{ $row['id'] }}" id="reset-date"><i class="fa fa-close"></i></button>
<button class="my-to-dos-reset-date-button" data-id="{{ $row['id'] }}" id="reset-date"><span class="sr-only">{{ __("language.resetDate") }}</span><i class="fa fa-close"></i></button>
</div>
<div class="col-md-8 dropdownContainer" style="padding-top:5px;">
<div class="dropdown ticketDropdown statusDropdown colorized show right ">
Expand Down
1 change: 1 addition & 0 deletions app/Language/da-DK.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ language.weekHeader="Uge"
language.columnFormatMonth="ddd"
language.columnFormatWeek="ddd d/M"
language.columnFormatday="dddd d/M"
language.resetDate="Nulstil dato"

headlines.all_times="Alle tider"
headlines.all_timesheets="Alle timesedler"
Expand Down
1 change: 1 addition & 0 deletions app/Language/en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ language.weekHeader = "Wk"
language.columnFormatMonth = "ddd"
language.columnFormatWeek = "ddd M/d"
language.columnFormatday = "dddd M/d"
language.resetDate="Reset date"

headlines.all_times = "All Times"
headlines.all_timesheets = "All Timesheets"
Expand Down

0 comments on commit b53abfc

Please sign in to comment.