You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
555B

  1. function checkForm() {
  2. $('form').addClass('form-sent');
  3. //Panel vues js
  4. if ($('form').find('.tab-pane').length) {
  5. $('form').find('.tab-pane').each(function (i, panel) {
  6. if ($(panel).find(':invalid').length) {
  7. $('#nav-params').find('.nav-item:eq(' + i + ')').addClass('has-invalid');
  8. } else {
  9. $('#nav-params').find('.nav-item:eq(' + i + ')').removeClass('has-invalid');
  10. }
  11. })
  12. }
  13. }
  14. $('button[type="submit"]').on('click', function (e) {
  15. checkForm();
  16. })