[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5476] branches/1.3



Revision: 5476
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5476&view=rev
Author:   einhverfr
Date:     2013-01-04 10:48:44 +0000 (Fri, 04 Jan 2013)
Log Message:
-----------
Merging fix for firefox js from trunk

Modified Paths:
--------------
    branches/1.3/bin/ir.pl
    branches/1.3/bin/is.pl
    branches/1.3/bin/oe.pl

Property Changed:
----------------
    branches/1.3/


Property changes on: branches/1.3
___________________________________________________________________
Modified: svn:mergeinfo
   - /trunk:3711-3712,5424,5446-5448,5451,5457,5459,5461,5466,5473
   + /trunk:3711-3712,5424,5446-5448,5451,5457,5459,5461,5466,5473,5475

Modified: branches/1.3/bin/ir.pl
===================================================================
--- branches/1.3/bin/ir.pl	2013-01-04 10:46:11 UTC (rev 5475)
+++ branches/1.3/bin/ir.pl	2013-01-04 10:48:44 UTC (rev 5476)
@@ -410,15 +410,19 @@
 <body onLoad="document.forms[0].${focus}.focus()" />
 | . $form->open_status_div . qq|
 <script> 
-function on_return_submit(){
-    if (window.event.keyCode == 13){
-        document.forms[0].submit()
-    }
+function on_return_submit(event){
+  var kc;
+  if (window.event){
+    kc = window.event.keyCode;
+  } else {
+    kc = event.which;
+  }
+  if (kc == '13'){
+        document.forms[0].submit();
+  }
 }
 </script>
-<form method=post action="$form->{script}" onkeypress="on_return_submit()">
-
-<form method=post action="$form->{script}">
+<form method=post action="$form->{script}" onkeypress="on_return_submit(event)">
 |;
     if ($form->{notice}){
          print qq|$form->{notice}<br/>|;

Modified: branches/1.3/bin/is.pl
===================================================================
--- branches/1.3/bin/is.pl	2013-01-04 10:46:11 UTC (rev 5475)
+++ branches/1.3/bin/is.pl	2013-01-04 10:48:44 UTC (rev 5476)
@@ -446,13 +446,19 @@
 <body onLoad="document.forms[0].${focus}.focus()" /> 
 | . $form->open_status_div . qq|
 <script> 
-function on_return_submit(){
-    if (window.event.keyCode == 13){
-        document.forms[0].submit()
-    }
+function on_return_submit(event){
+  var kc;
+  if (window.event){
+    kc = window.event.keyCode;
+  } else {
+    kc = event.which;
+  }
+  if (kc == '13'){
+        document.forms[0].submit();
+  }
 }
 </script>
-<form method=post action="$form->{script}" onkeypress="on_return_submit()">
+<form method=post action="$form->{script}" onkeypress="on_return_submit(event)">
 |;
 
     $form->hide_form(

Modified: branches/1.3/bin/oe.pl
===================================================================
--- branches/1.3/bin/oe.pl	2013-01-04 10:46:11 UTC (rev 5475)
+++ branches/1.3/bin/oe.pl	2013-01-04 10:48:44 UTC (rev 5476)
@@ -584,15 +584,20 @@
 <body onLoad="document.forms[0].${focus}.focus()" />
 | . $form->open_status_div . qq|
 <script> 
-function on_return_submit(){
-    if (window.event.keyCode == 13){
-        document.forms[0].submit()
-    }
+function on_return_submit(event){
+  var kc;
+  if (window.event){
+    kc = window.event.keyCode;
+  } else {
+    kc = event.which;
+  }
+  if (kc == '13'){
+        document.forms[0].submit();
+  }
 }
 </script>
-<form method=post action="$form->{script}" onkeypress="on_return_submit()">
+<form method=post action="$form->{script}" onkeypress="on_return_submit(event)">
 
-<form method=post action="$form->{script}">
 |;
 
     if ($form->{notice}){

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.