idx++;
{/foreach}
+// TODO: improve on conditional confirmSave.
+// Existing entry date for confirm save warnings.
+var original_date = "{$entry_date}";
+
+function confirmSave() {
+ var date_on_save = document.getElementById("date").value;
+ if (original_date != date_on_save) {
+ return confirm("{$i18n.warn.confirm_save}");
+ }
+}
+// TODO: improve on conditional confirmSave above.
+
// The fillProjectDropdown function populates the project combo box with
// projects associated with a selected client (client id is passed here as id).
function fillProjectDropdown(id) {