You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2017/02/26 04:34:48 UTC

svn commit: r1784416 - in /manifoldcf/trunk/framework: core/src/test/resources/org/apache/manifoldcf/core/tests/VirtualBrowser.py crawler-ui/src/main/webapp/login.jsp

Author: kwright
Date: Sun Feb 26 04:34:47 2017
New Revision: 1784416

URL: http://svn.apache.org/viewvc?rev=1784416&view=rev
Log:
Fix for Markus's fix for CONNECTORS-1388.

Modified:
    manifoldcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/VirtualBrowser.py
    manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp

Modified: manifoldcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/VirtualBrowser.py
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/VirtualBrowser.py?rev=1784416&r1=1784415&r2=1784416&view=diff
==============================================================================
--- manifoldcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/VirtualBrowser.py (original)
+++ manifoldcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/VirtualBrowser.py Sun Feb 26 04:34:47 2017
@@ -1493,7 +1493,8 @@ class JSDocObject( Javascript.JSObject )
             return Javascript.JSObject.get_value( self, member_name )
 
     def set_value( self, member_name, value ):
-        raise Exception("Cannot set properties of document object")
+        if member_name != "onkeypress":
+            raise Exception("Cannot set properties of document object")
 
 # Class representing a form in Javascript
 class JSFormObject( Javascript.JSObject ):

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=1784416&r1=1784415&r2=1784416&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp (original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/login.jsp Sun Feb 26 04:34:47 2017
@@ -43,8 +43,6 @@ response.setContentType("text/html;chars
         document.loginform.submit();
       }
 
-      document.onkeypress = loginKeyPress;
-
       function loginKeyPress(e)
       {
           e = e || window.event;
@@ -55,6 +53,9 @@ response.setContentType("text/html;chars
           }
           return true;
       }
+      
+      document.onkeypress = loginKeyPress;
+
       //-->
     </script>
   </head>
@@ -79,7 +80,7 @@ if (value != null && value.equals("true"
               <tr>
                 <td class="description"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"index.UserIDColon")%></nobr></td>
                 <td class="value">
-                  <input name="userID" type="text" size="32" value="" autofocus />
+                  <input name="userID" type="text" size="32" value="" autofocus="true"/>
                 </td>
               </tr>
               <tr>