projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Work in progress on Italian translation.
[timetracker.git]
/
WEB-INF
/
templates
/
time_script.tpl
diff --git
a/WEB-INF/templates/time_script.tpl
b/WEB-INF/templates/time_script.tpl
index
275f74c
..
109f67e
100644
(file)
--- a/
WEB-INF/templates/time_script.tpl
+++ b/
WEB-INF/templates/time_script.tpl
@@
-143,6
+143,11
@@
function fillTaskDropdown(id) {
}
}
}
+
+ // Select a task if user is required to do so and there is only one task available.
+ if ({$user->task_required} && dropdown.options.length == 2) { // 2 because of mandatory top option.
+ dropdown.options[1].selected = true;
+ }
}
}