Skip to content

Commit

Permalink
TTK-26552: Reload to base url
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina committed Jul 11, 2024
1 parent f3eec8a commit 9842ea5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Resources/views/Stats/js.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,17 @@
$('.btn-stats-calendar-remove').on('click', function(event){
event.preventDefault();
$('#form_daterangepicker').val(moment().startOf('year').format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
window.initializeAjaxRequest();
window.location = window.location.href.split("?")[0];
});
$('.btn-stats-search-remove').on('click', function(event){
event.preventDefault();
$('#title').val('');
window.initializeAjaxRequest();
window.location = window.location.href.split("?")[0];
});
$('.btn-reset-filter').on('click',function(event) {
event.preventDefault();
$('#title').val('');
$('#form_daterangepicker').val(moment().startOf('year').format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
window.initializeAjaxRequest();
window.location = window.location.href.split("?")[0];
});
$('.ripple-wrapper').on('click', function(event) {
Expand Down Expand Up @@ -538,7 +534,7 @@
"</tr>"
);
});
console.log(total);
$('.total-views-objects').html(total);
$('#foot-views').html(total);
Expand Down

0 comments on commit 9842ea5

Please sign in to comment.