Skip to content

Commit

Permalink
refactoring to use better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
evaK-de committed Mar 18, 2018
1 parent a56ce4e commit a0ef6a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions templates/standard/project.tpl
Expand Up @@ -228,14 +228,14 @@
});

//get the form to be submitted
var addProjectForm = document.getElementById("trackeradd");
var addTimeTrackerForm = document.getElementById("trackeradd");
//assign the view to be updated after submitting to the formView variable
var formView = calendarView;
formView.doUpdate = false;
formView.itemType = "timetracker";
//add an event listener capaturing the submit event of the form
//add submitForm() as the handler for the event, and bind the form view to it
addProjectForm.addEventListener("submit", submitForm.bind(formView));
addTimeTrackerForm.addEventListener("submit", submitForm.bind(formView));
</script>
{/literal}

Expand All @@ -244,7 +244,4 @@
</div> {*content-left END*}

{include file="sidebar-a.tpl" showcloud="1"}



{include file="footer.tpl"}

0 comments on commit a0ef6a8

Please sign in to comment.