aboutsummaryrefslogtreecommitdiff
path: root/static/widgets/month-select/index.js
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-11-24 21:13:47 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-11-24 21:17:05 +0100
commitf3756dac8a49f3b5599fd50f4c631da4168e9eb0 (patch)
treea84d95e30269d4b368b741ffd1a781b7cfbb1988 /static/widgets/month-select/index.js
parent97b35ce73fab8a84d4d3e6807618a252efcf4cd9 (diff)
add jump-to month
Diffstat (limited to 'static/widgets/month-select/index.js')
-rw-r--r--static/widgets/month-select/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/widgets/month-select/index.js b/static/widgets/month-select/index.js
index 6ffbac2..63caf70 100644
--- a/static/widgets/month-select/index.js
+++ b/static/widgets/month-select/index.js
@@ -70,5 +70,16 @@ export default class MonthSelect extends sfw.element.Container {
last = month;
}
+
+ this.#month_container.append(
+ Div.new({
+ className: 'month-item none',
+ innerText: 'No Date',
+ onclick: () => {
+ this.hide();
+ this.onmonth(null);
+ }
+ })
+ );
}
}