Project

General

Profile

« Previous | Next » 

Revision 8255

remove unused JS that was only throwing an error when loaded via ajax

View differences:

lib/style/common/templates/ldapLookupName.tmpl
14 14
    
15 15
    <p class="label text-error">[% errorMessage %]<p>
16 16
    <p>
17
    <script type="text/javascript" language="JavaScript1.2">
18
    
19
    <!--
20
      document.loginForm.givenName.focus();
21
      document.loginForm.givenName.select();
22 17

  
23
      if(window.document.captureEvents != null)
24
      {
25
        window.document.captureEvents(Event.KEYPRESS);
26
        window.document.onKeyPress = doSubmit;
27
      }
28

  
29
      function doSubmit(event)
30
      {
31
        var key;
32
        if(document.all) // IE
33
          key = String.fromCharCode(window.events.keyCode);
34
        else
35
          key = String.fromCharCode(event.which);
36

  
37
        if(key == "\r" || key == "\n")
38
          document.loginForm.submit();
39
      }
40
    // -->
41
    </script>
42

  
43 18
    <form name="loginForm" action="[% cgiurl %]" method="post">
44 19
      <input type="hidden" name="stage" value="searchnamesbyemail"/>
45 20
      <input type="hidden" name="cfg" value="[% cfg %]"/>

Also available in: Unified diff