[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5526] trunk/bin
- Subject: SF.net SVN: ledger-smb:[5526] trunk/bin
- From: ..hidden..
- Date: Thu, 10 Jan 2013 06:01:51 +0000
Revision: 5526
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5526&view=rev
Author: einhverfr
Date: 2013-01-10 06:01:51 +0000 (Thu, 10 Jan 2013)
Log Message:
-----------
Adjusting new Javascript to ignore return key strokes in text areas
Modified Paths:
--------------
trunk/bin/ir.pl
trunk/bin/is.pl
trunk/bin/oe.pl
Modified: trunk/bin/ir.pl
===================================================================
--- trunk/bin/ir.pl 2013-01-09 10:08:19 UTC (rev 5525)
+++ trunk/bin/ir.pl 2013-01-10 06:01:51 UTC (rev 5526)
@@ -446,7 +446,7 @@
} else {
kc = event.which;
}
- if (kc == '13'){
+ if (kc == '13' and document.activeElement.nodeName != 'TEXTAREA'){
document.forms[0].submit();
}
}
Modified: trunk/bin/is.pl
===================================================================
--- trunk/bin/is.pl 2013-01-09 10:08:19 UTC (rev 5525)
+++ trunk/bin/is.pl 2013-01-10 06:01:51 UTC (rev 5526)
@@ -449,7 +449,7 @@
} else {
kc = event.which;
}
- if (kc == '13'){
+ if (kc == '13' and document.activeElement.nodeName != 'TEXTAREA'){
document.forms[0].submit();
}
}
Modified: trunk/bin/oe.pl
===================================================================
--- trunk/bin/oe.pl 2013-01-09 10:08:19 UTC (rev 5525)
+++ trunk/bin/oe.pl 2013-01-10 06:01:51 UTC (rev 5526)
@@ -598,7 +598,7 @@
} else {
kc = event.which;
}
- if (kc == '13'){
+ if (kc == '13' and document.activeElement.nodeName != 'TEXTAREA'){
document.forms[0].submit();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.