X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fexpense_edit.tpl;h=41e3c2e213b06ab9302b963e1ba13583f3fb7990;hb=845622e615e142555436c61425dfcef7c51e14a2;hp=ddf0d2837df09c946324a3c9f9a8e7fd2c89ee32;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/templates/expense_edit.tpl b/WEB-INF/templates/expense_edit.tpl index ddf0d283..41e3c2e2 100644 --- a/WEB-INF/templates/expense_edit.tpl +++ b/WEB-INF/templates/expense_edit.tpl @@ -27,7 +27,7 @@ projects = new Array(); empty_label_project = '{$i18n.dropdown.select|escape:'javascript'}'; // 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"); @@ -42,7 +42,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) @@ -74,11 +74,11 @@ function get_date() { -
+ -{if in_array('cl', explode(',', $user->plugins))} +{if $user->isPluginEnabled('cl')} - + {/if}
{$i18n.label.client} {if in_array('cm', explode(',', $user->plugins))}(*){/if}:{$i18n.label.client} {if $user->isPluginEnabled('cm')}(*){/if}: {$forms.expenseItemForm.client.control}