Browse Source

Fixed form

Brendan Abolivier 8 years ago
parent
commit
1d9e6879ef
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      front/form.js
  2. 1
    1
      front/index.html

+ 1
- 1
front/form.js View File

103
     
103
     
104
     if(!type.localeCompare('input')) { // Set input type if input
104
     if(!type.localeCompare('input')) { // Set input type if input
105
         if(email) {
105
         if(email) {
106
-            input.setAttribute('type', 'mail');
106
+            input.setAttribute('type', 'email');
107
         } else {
107
         } else {
108
             input.setAttribute('type', 'text');
108
             input.setAttribute('type', 'text');
109
         }
109
         }

+ 1
- 1
front/index.html View File

6
         <script src="http://localhost:1970/form.js" charset="utf-8"></script>
6
         <script src="http://localhost:1970/form.js" charset="utf-8"></script>
7
     </head>
7
     </head>
8
     <body>
8
     <body>
9
-        <div id="smam"></div>
9
+        <form id="smam" onsubmit="sendForm(); return false;"></form>
10
         <script type="text/javascript">
10
         <script type="text/javascript">
11
             generateForm('smam');
11
             generateForm('smam');
12
         </script>
12
         </script>