[Libreoffice-commits] .: 2 commits - bug/bug bug/bug.xhtml

Loic Dachary loic at kemper.freedesktop.org
Wed Sep 21 03:12:35 PDT 2011


 bug/bug.xhtml  |    2 +-
 bug/bug/bug.js |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit ec2f56a788855ff2e734a2157559b1f70165acdd
Author: Loic Dachary <loic at dachary.org>
Date:   Wed Sep 21 12:12:27 2011 +0200

    handle ie8 focus and launch the browser

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index d1116fc..0743585 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -216,6 +216,11 @@
                     show();
                 
             }});
+            // some browsers allow the input field to get focus, presumably to 
+            // type the filename. launch the browser instead.
+            $("input[type='file']", element).focus(function() {
+                $(this).click();
+            });
             $("input[type='file']", element).change(function() {
                 $("input[type='text']", element).val($(this).val());
             });
commit c34bde9d4ff3d162e398f8da303ff5bb1d0b8544
Author: Loic Dachary <loic at dachary.org>
Date:   Wed Sep 21 11:29:55 2011 +0200

    add type="text/javascript" to please validator

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index ef75845..3a0f6cb 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -176,7 +176,7 @@
         </div>
       </div>
     </div>
-    <script>
+    <script type="text/javascript">
       var unsupported = false;
       $(document).ready(function() {
         try {


More information about the Libreoffice-commits mailing list