-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor changes and bugfixes #33
Conversation
Templates/timetable.blade.php
Outdated
</div> | ||
<div class="entry-copy-weekend-checkbox"> | ||
<input type="checkbox" name="entryCopyWeekend" id="entry-copy-weekend" /> | ||
<label for="entry-copy-weekend"><small>Inkluder weekender</small></label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ __("Inkluder weekender") }}
<div class="entry-copy-overwrite-checkbox"> | ||
<input type="checkbox" name="entryCopyOverwrite" id="entry-copy-overwrite" /> | ||
<label for="entry-copy-overwrite"><small>Overskriv allerede registrerede felter</small></label> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ __("Overskriv allerede registrerede felter") }}
@@ -707,10 +755,10 @@ jQuery(document).ready(function ($) { | |||
</div>`; | |||
}, | |||
option: function (item, escape) { | |||
return `<div><span>${escape(item.text)} <span><i class="fa fa-angle-right fa-xs"></i> ${escape(item.projectName)} <small>(${escape(item.value)})</small> <small style="float: right;">${item.editorId === pluginSettings.userId ? '<i class="your-task far fa-user" title="To-do is assigned to you"></i>' : ""}(${escape(item.type)})</small></span></span></div>`; | |||
return `<div><span>${escape(item.text)} <span><i class="fa fa-angle-right fa-xs"></i> ${escape(item.projectName)} <small>(${escape(item.value)})</small> <small style="float: right;">${item.editorId === pluginSettings.userId ? '<i class="your-task far fa-user" title="To-do is assigned to you"></i>' : ""}${item.type.toLowerCase() !== "task" ? `(${escape(item.type)})` : ""}</small></span></span></div>`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the html definition of the options in the to-do search dropdown. The addition lowercases the type name, because we had instances of to-dos with the type "Task" and "task", causing problems cause letter case was not taken into consideration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And! We only want to display types not equal to "task".
It clutters a lot with "task" written on every to-do, so we figured that it would be better just to print it on to-dos with another type than task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small things, the item.type.toLowerCase() !== "task"
, does it take the subtask type into account?
Link to ticket
#3238
Description
The following changes has been made:
Screenshot of the result
N/A
Checklist
If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.
Additional comments or questions
If you have any further comments or questions for the reviewer please add them here.