Changeset 1315 for EWD/ewdapps
- Timestamp:
- Dec 9, 2011, 8:56:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EWD/ewdapps/so/pages/index.ewd
r1284 r1315 13 13 <script type="text/javascript"> 14 14 var VISTA = {}; // Mi Casa 15 16 // Makes the EWD Error show up in a div rather than a pop-up 15 17 VISTA.redirectEWDErrorToDiv = function () { 16 18 EWD.page.errorMessage = function (msg) { … … 21 23 } 22 24 }; 25 }; 26 27 // If AC contains an ; disable Verify Code field 28 VISTA.checkAC = function (ac) { 29 if (ac.indexOf(";") > -1) 30 { 31 var vc = document.getElementById("vc"); 32 vc.disabled = "disabled"; 33 vc.placeholder = "ALREADY ENTERED"; 34 vc.style.background = "#646060"; 35 } 36 else 37 { 38 var vc = document.getElementById("vc"); 39 vc.disabled = null; 40 vc.placeholder = "Verify Code"; 41 vc.style.background = null; 42 } 23 43 }; 24 44 </script> … … 40 60 <tr> 41 61 <td valign="middle"><label for="ac">Access Code</label></td> 42 <td valign="middle"><input id="ac" type="password" placeholder="Access Code" autofocus required></td>62 <td valign="middle"><input id="ac" type="password" oninput="VISTA.checkAC(this.value)" placeholder="Access Code" autofocus required></td> 43 63 </tr> 44 64 <tr> 45 65 <td valign="middle"><label for="vc">Verify Code</label></td> 46 <td valign="middle"><input id="vc" type="password" placeholder="Verify Code" required></td>66 <td valign="middle"><input id="vc" type="password" placeholder="Verify Code"></td> 47 67 </tr> 48 68 <tr>
Note:
See TracChangeset
for help on using the changeset viewer.