X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fmobile%2Ftime.tpl;h=8a57c8c1da8a8f6affe05197654a45e2cf33144c;hb=3d5bc3e13797cb7121ed8548b723a0ef85eda80c;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..8a57c8c1 100644 --- a/WEB-INF/templates/mobile/time.tpl +++ b/WEB-INF/templates/mobile/time.tpl @@ -41,7 +41,7 @@ task_names = new Array(); 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)) @@ -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() { {if $record.invoice_id} {else}{$i18n.label.edit}{/if} {/foreach} - - +
+ -
{$i18n.label.day_total}: {$day_total}
+ {/if} @@ -248,13 +248,13 @@ function get_date() { -
+ -{if in_array('cl', explode(',', $user->plugins))} +{if $user->isPluginEnabled('cl')} {/if} -{if in_array('iv', explode(',', $user->plugins))} +{if $user->isPluginEnabled('iv')} {/if} {if ($custom_fields && $custom_fields->fields[0])} @@ -293,4 +293,4 @@ function get_date() {
{$i18n.label.client}:
{$forms.timeRecordForm.client.control}
-{$forms.timeRecordForm.close} \ No newline at end of file +{$forms.timeRecordForm.close}