X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Ftime.tpl;h=46d8a5e62de2b0dd43e57effc56bfae4e6f55984;hb=0b7d5dd056656e9aac70d1db5255b464d7248327;hp=8ae65b0d2985e52f7d4a4fb408fbe0db699048c3;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/time.tpl b/WEB-INF/templates/mobile/time.tpl
index 8ae65b0d..46d8a5e6 100644
--- a/WEB-INF/templates/mobile/time.tpl
+++ b/WEB-INF/templates/mobile/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];
@@ -68,7 +68,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) {
@@ -100,13 +100,13 @@ 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;
@@ -131,7 +131,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;
@@ -161,18 +161,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");
@@ -204,7 +204,7 @@ function get_date() {
@@ -230,13 +230,13 @@ function get_date() {