Author: molgun
Date: Thu Dec 24 09:09:27 2015
New Revision: 1721604

URL: http://svn.apache.org/viewvc?rev=1721604&view=rev
Log:
CONNECTORS-1267: Fixed

Modified:
    manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp

Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp?rev=1721604&r1=1721603&r2=1721604&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp (original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp Thu Dec 24 
09:09:27 2015
@@ -42,6 +42,19 @@ response.setContentType("text/html;chars
       {
         document.loginform.submit();
       }
+
+      document.onkeypress = loginKeyPress;
+
+      function loginKeyPress(e)
+      {
+          e = e || window.event;
+          if (e.keyCode == 13)
+          {
+              document.getElementById('buttonLogin').click();
+              return false;
+          }
+          return true;
+      }
       //-->
     </script>
   </head>
@@ -78,7 +91,7 @@ if (value != null && value.equals("true"
               <tr><td class="separator" colspan="2"><hr/></td></tr>
               <tr>
                 <td class="message" colspan="2">
-                  <input type="button" onclick='Javascript:login();' 
value='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"index.Login")%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"index.Login")%>'/>
+                  <input id="buttonLogin" type="button" 
onclick='Javascript:login();' 
value='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"index.Login")%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"index.Login")%>'/>
                 </td>
               </tr>
             </table>


Reply via email to