Skip to content

Commit

Permalink
reset content of time tracking comment field upon form submission for…
Browse files Browse the repository at this point in the history
… better user feedback
  • Loading branch information
evaK-de committed Mar 18, 2018
1 parent a0ef6a8 commit 1676e00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions include/js/views/project.js
Expand Up @@ -4,7 +4,11 @@ function updateCalendar(myCalendar, newMonth, newYear) {
var calendarUrl = currentUrl + "&y=" + newYear + "&m=" + newMonth;
Vue.set(myCalendar, "url", calendarUrl);
updateView(myCalendar);
}

function formSubmited() {
tinymce.activeEditor.setContent("");
delete cssId("comment").value;
}

var projectCalendar = {
Expand All @@ -22,9 +26,7 @@ var accord_dashboard = new accordion2('block_dashboard', {
}
});


function activateAccordeon(theAccord) {

accord_dashboard.toggle(cssAll('#block_dashboard .accordion_content')[theAccord]);
setCookie("activeSlideProject", theAccord);
}
Expand Down
3 changes: 2 additions & 1 deletion include/js/views/project.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1676e00

Please sign in to comment.