manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1821238 - /manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js
Date Tue, 16 Jan 2018 12:44:22 GMT
Author: kishore
Date: Tue Jan 16 12:44:22 2018
New Revision: 1821238

URL: http://svn.apache.org/viewvc?rev=1821238&view=rev
Log:
Updated fix for CONNECTORS-1485

Modified:
    manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js

Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js?rev=1821238&r1=1821237&r2=1821238&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js (original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js Tue Jan 16 12:44:22
2018
@@ -534,7 +534,8 @@ $(function(){
   //Prevent from submit on Enter
   $(window).keydown(function(e){
     var key = e.charCode || e.keyCode || 0;
-    if(key == 13) {
+    var node = (e.target) ? e.target : ((e.srcElement) ? e.srcElement : null);
+    if(key == 13 && node.nodeName !== "TEXTAREA") {
       console.log("Enter on input fields is disabled.");
       e.preventDefault();
       return false;



Mime
View raw message