You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2019/03/07 15:15:45 UTC
[myfaces-tobago] branch tobago-2.x updated: TOBAGO-1985: Empty
cells in Sheets aren't clickable in IE11
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 <lo...@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)
}
},