X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Ftime.tpl;h=d16101121a8df58c852ab80f047bd474f371d554;hb=6cae57e56590e859655bde42058a8bddac7b594e;hp=9367065679e873e3d58aa0f93bd6018f4aa30431;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/templates/time.tpl b/WEB-INF/templates/time.tpl
index 93670656..d1610112 100644
--- a/WEB-INF/templates/time.tpl
+++ b/WEB-INF/templates/time.tpl
@@ -51,7 +51,7 @@ function fillDropdowns() {
}
// The fillProjectDropdown function populates the project combo box with
-// projects associated with a selected client (client id is passed here as id).
+// projects associated with a selected client (client id is passed here as id).
function fillProjectDropdown(id) {
var str_ids = project_ids[id];
var dropdown = document.getElementById("project");
@@ -67,7 +67,7 @@ function fillProjectDropdown(id) {
// Populate project dropdown.
if (!id) {
// If we are here, client is not selected.
- var len = projects.length;
+ var len = projects.length;
for (var i = 0; i < len; i++) {
dropdown.options[i+1] = new Option(projects[i][1], projects[i][0]);
if (dropdown.options[i+1].value == selected_item) {
@@ -99,16 +99,16 @@ function fillProjectDropdown(id) {
}
// The fillTaskDropdown function populates the task combo box with
-// tasks associated with a selected project (project id is passed here as id).
+// tasks associated with a selected project (project id is passed here as id).
function fillTaskDropdown(id) {
var str_ids = task_ids[id];
var dropdown = document.getElementById("task");
if (dropdown == null) return; // Nothing to do.
-
+
// Determine previously selected item.
var selected_item = dropdown.options[dropdown.selectedIndex].value;
-
+
// Remove existing content.
dropdown.length = 0;
// Add mandatory top option.
@@ -130,7 +130,7 @@ function fillTaskDropdown(id) {
}
// If a previously selected item is still in dropdown - select it.
- if (dropdown.options.length > 0) {
+ if (dropdown.options.length > 0) {
for (var i = 0; i < dropdown.options.length; i++) {
if (dropdown.options[i].value == selected_item) {
dropdown.options[i].selected = true;
@@ -160,18 +160,18 @@ function formDisable(formField) {
}
if ((formFieldValue != "") && (formFieldName == "duration")) {
- var x = eval("document.timeRecordForm.start");
- x.value = "";
- x.disabled = true;
- x.style.background = "#e9e9e9";
- var x = eval("document.timeRecordForm.finish");
- x.value = "";
- x.disabled = true;
- x.style.background = "#e9e9e9";
+ var x = eval("document.timeRecordForm.start");
+ x.value = "";
+ x.disabled = true;
+ x.style.background = "#e9e9e9";
+ var x = eval("document.timeRecordForm.finish");
+ x.value = "";
+ x.disabled = true;
+ x.style.background = "#e9e9e9";
}
if ((formFieldValue == "") && (formFieldName == "duration")) {
- var x = eval("document.timeRecordForm.start");
+ var x = eval("document.timeRecordForm.start");
x.disabled = false;
x.style.background = "white";
var x = eval("document.timeRecordForm.finish");
@@ -291,60 +291,60 @@ function get_time() {