Clear date on custom event flatpickr_clear

This commit is contained in:
Jean-Baptiste Bellet
2022-08-05 16:44:51 +02:00
committed by Konrad
parent ddfbcacd83
commit 8942d3d17b
3 changed files with 8 additions and 2 deletions

View File

@@ -29,6 +29,8 @@ angular.module("admin.orders").controller "ordersCtrl", ($scope, $timeout, Reque
$scope.q = {
completed_at_not_null: true
}
e = new CustomEvent("flatpickr_clear");
window.dispatchEvent(e)
$scope.clearFilters = () ->
KeyValueMapStore.clearKeyValueMap()