empty_label_project = '{$i18n.dropdown.select|escape:'javascript'}';
empty_label_task = '{$i18n.dropdown.select|escape:'javascript'}';
-// The populateDropdowns function populates the "project" and "task" dropdown controls
+// The fillDropdowns function populates the "project" and "task" dropdown controls
// with relevant values.
function fillDropdowns() {
if(document.body.contains(document.timeRecordForm.client))
function formDisable(formField) {
var formFieldValue = eval("document.timeRecordForm." + formField + ".value");
var formFieldName = eval("document.timeRecordForm." + formField + ".name");
+ var x;
if (((formFieldValue != "") && (formFieldName == "start")) || ((formFieldValue != "") && (formFieldName == "finish"))) {
- var x = eval("document.timeRecordForm.duration");
+ x = eval("document.timeRecordForm.duration");
x.value = "";
x.disabled = true;
x.style.background = "#e9e9e9";
}
if (((formFieldValue == "") && (formFieldName == "start") && (document.timeRecordForm.finish.value == "")) || ((formFieldValue == "") && (formFieldName == "finish") && (document.timeRecordForm.start.value == ""))) {
- var x = eval("document.timeRecordForm.duration");
+ x = eval("document.timeRecordForm.duration");
x.value = "";
x.disabled = false;
x.style.background = "white";
}
if ((formFieldValue != "") && (formFieldName == "duration")) {
- var x = eval("document.timeRecordForm.start");
+ x = eval("document.timeRecordForm.start");
x.value = "";
x.disabled = true;
x.style.background = "#e9e9e9";
- var x = eval("document.timeRecordForm.finish");
+ x = eval("document.timeRecordForm.finish");
x.value = "";
x.disabled = true;
x.style.background = "#e9e9e9";
}
if ((formFieldValue == "") && (formFieldName == "duration")) {
- var x = eval("document.timeRecordForm.start");
+ x = eval("document.timeRecordForm.start");
x.disabled = false;
x.style.background = "white";
- var x = eval("document.timeRecordForm.finish");
+ x = eval("document.timeRecordForm.finish");
x.disabled = false;
x.style.background = "white";
}
var x = eval("document.timeRecordForm.start");
x.disabled = false;
x.style.background = "white";
- var x = eval("document.timeRecordForm.finish");
+ x = eval("document.timeRecordForm.finish");
x.disabled = false;
x.style.background = "white";
var today = new Date();
{/if}
{if ($custom_fields && $custom_fields->fields[0])}
<tr>
- <td align="right">{$custom_fields->fields[0]['label']|escape:'html'}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
+ <td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
</tr>
{/if}
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
{/if}
{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
<tr>
- <td align="right">{$i18n.label.task} (*):</td>
+ <td align="right">{$i18n.label.task}:</td>
<td>{$forms.timeRecordForm.task.control}</td>
</tr>
{/if}