diff options
Diffstat (limited to 'httemplate/elements/tr-select-expire_months.html')
-rw-r--r-- | httemplate/elements/tr-select-expire_months.html | 10 |
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> |