mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 01:55:47 +00:00
Added a workaround for the not working customRangeLabel
option of the daterangepicker component (fixes #2353)
This commit is contained in:
parent
69db4b558b
commit
c9215a9a4e
@ -116,7 +116,6 @@ $("#daterange-filter").daterangepicker({
|
|||||||
},
|
},
|
||||||
"applyLabel": __t("Apply"),
|
"applyLabel": __t("Apply"),
|
||||||
"cancelLabel": __t("Cancel"),
|
"cancelLabel": __t("Cancel"),
|
||||||
"customRangeLabel": __t("Custom range"),
|
|
||||||
"ranges": ranges
|
"ranges": ranges
|
||||||
}, function(start, end, label)
|
}, function(start, end, label)
|
||||||
{
|
{
|
||||||
@ -124,6 +123,7 @@ $("#daterange-filter").daterangepicker({
|
|||||||
UpdateUriParam("end_date", end.format("YYYY-MM-DD"))
|
UpdateUriParam("end_date", end.format("YYYY-MM-DD"))
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
|
$('[data-range-key="Custom Range"]').text(__t("Custom range")); // customRangeLabel option doesn't work, however
|
||||||
|
|
||||||
$("#daterange-filter").on("cancel.daterangepicker", function(ev, picker)
|
$("#daterange-filter").on("cancel.daterangepicker", function(ev, picker)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user