add.tpl 414 B

12345678910111213141516
  1. {{ form }}
  2. <script>
  3. $(document).on('ready', function () {
  4. $('select[name="type"]').on('change', function () {
  5. var advancedOptionsEl = $('#show_advanced_options');
  6. var type = parseInt($(this).val());
  7. if (type > 0) {
  8. advancedOptionsEl.hide();
  9. } else {
  10. advancedOptionsEl.show();
  11. }
  12. });
  13. });
  14. </script>