myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch tobago-2.x updated: TOBAGO-1985: Empty cells in Sheets aren't clickable in IE11
Date Thu, 07 Mar 2019 15:15:45 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch tobago-2.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-2.x by this push:
     new dfe8b2a  TOBAGO-1985: Empty cells in Sheets aren't clickable in IE11
dfe8b2a is described below

commit dfe8b2a91bebb6cd737d788980a6e9a126d11560
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Thu Mar 7 16:15:24 2019 +0100

    TOBAGO-1985: Empty cells in Sheets aren't clickable in IE11
---
 .../tobago/renderkit/html/standard/standard/script/tobago.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
b/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
index 26d5f4b..ee928e3 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
@@ -1220,14 +1220,14 @@ var Tobago = {
    * Clear the selection.
    */
   clearSelection: function() {
-    if (document.selection) {  // IE
-      try {
+    try {
+      if (document.selection) {  // IE
         document.selection.empty();
-      } catch (error) {
-        // Ignore error: seems to be a browser bug (TOBAGO-1201)
+      } else if (window.getSelection) {  // GECKO
+        window.getSelection().removeAllRanges();
       }
-    } else if (window.getSelection) {  // GECKO
-      window.getSelection().removeAllRanges();
+    } catch (error) {
+      // Ignore error: seems to be a browser bug (TOBAGO-1201), see also (TOBAGO-1986)
     }
   },
 


Mime
View raw message