Skip to content

Commit

Permalink
Evarisk#584 [TimespentRange] fix: serch_user is not reset
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-kilyan committed Oct 24, 2024
1 parent d9c5df5 commit 59ab0ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/dolisirh.min.js

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

8 changes: 7 additions & 1 deletion js/modules/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,14 @@ window.dolisirh.task.searchForm = function(event) {
}
window.saturne.loader.display($('#addtimeform'));

let url = new URL(document.URL);
url.searchParams.set('search_user_id', newFormData.get('search_user_id'));

// rewrite url without reload
window.history.pushState({}, '', url.href);

$.ajax({
url: document.URL,
url: url.href,
type: "POST",
data: newFormData,
processData: false,
Expand Down

0 comments on commit 59ab0ef

Please sign in to comment.