huaisian преди 2 години
родител
ревизия
5c5297ee7a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      js/index.js

+ 1 - 1
js/index.js

@@ -656,6 +656,7 @@ $('.match__next2').click(function() {
     }
     }
     console.log(time);
     console.log(time);
     if(name== 0 && phone == 0 && sex == 0 && readPolicy == 0) {
     if(name== 0 && phone == 0 && sex == 0 && readPolicy == 0) {
+        myModal.hide();
         $.ajax({
         $.ajax({
             type: "POST",
             type: "POST",
             url: "",
             url: "",
@@ -699,7 +700,6 @@ $('.match__next2').click(function() {
                 console.error(error)
                 console.error(error)
             }
             }
         })
         })
-        myModal.hide();
        window.open('./index_match.html');
        window.open('./index_match.html');
     }
     }