Changeset 1315


Ignore:
Timestamp:
Dec 9, 2011, 8:56:15 PM (12 years ago)
Author:
Sam Habiel
Message:

Support for sending verify code in access code using ;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EWD/ewdapps/so/pages/index.ewd

    r1284 r1315  
    1313    <script type="text/javascript">
    1414        var VISTA = {};  // Mi Casa
     15
     16        // Makes the EWD Error show up in a div rather than a pop-up
    1517        VISTA.redirectEWDErrorToDiv = function () {
    1618            EWD.page.errorMessage = function (msg) {
     
    2123                }
    2224            };
     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            }
    2343        };
    2444    </script>
     
    4060                    <tr>
    4161                    <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>
    4363                    </tr>
    4464                    <tr>
    4565                    <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>
    4767                    </tr>
    4868                    <tr>
Note: See TracChangeset for help on using the changeset viewer.