summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-expire_months.html
blob: ced96603d4018322e37abbbfb881e5dd537b79f5 (plain)
1
2
3
4
5
6
7
8
9
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>