summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-expire_months.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-13 17:26:48 -0700
committerMark Wells <mark@freeside.biz>2015-07-14 13:25:05 -0700
commit98f6d91ec7eaa907204afbfeb90ede1e3bff656d (patch)
treee5d7b870c4965f9a2b580e3cad5aed82d300e5c8 /httemplate/elements/tr-select-expire_months.html
parent57e3a0e08b81d52851314c60f37115a05b9be79e (diff)
automatic package changes for supplemental packages, #37102
Diffstat (limited to 'httemplate/elements/tr-select-expire_months.html')
-rw-r--r--httemplate/elements/tr-select-expire_months.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-expire_months.html b/httemplate/elements/tr-select-expire_months.html
new file mode 100644
index 000000000..ced96603d
--- /dev/null
+++ b/httemplate/elements/tr-select-expire_months.html
@@ -0,0 +1,10 @@
+<& tr-select-months.html, @_ &>
+<script>
+// disable the pkgpart selector if it's set to zero months
+$().ready(function() {
+ $('#expire_months').on('change', function() {
+ $('#change_to_pkgpart').prop('disabled', this.value == 0);
+ })
+ .trigger('change');
+});
+</script>