Skip to content
Snippets Groups Projects
Commit b8328bb8 authored by Martin Anderson-Clutz's avatar Martin Anderson-Clutz
Browse files

Issue #3272338 by pyrello, mandclu: Issues with time in Smart Date inline range widget

parent 838c3ace
No related branches found
Tags 7.x-4.0-rc1
No related merge requests found
......@@ -66,7 +66,7 @@
}
// Calculate and set End Time only if All Day is not checked.
if (wrapper.querySelector('input.allday') && wrapper.querySelector('input.allday').checked == false) {
if (!wrapper.querySelector('input.allday') || wrapper.querySelector('input.allday').checked == false) {
end.setHours(start_array[0]);
end.setMinutes(parseInt(start_array[1]) + duration);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment