Updated Branches:
  refs/heads/wicket-6.x 0b61b074b -> 1929f7b1d

WICKET-5273 Tabindex overwritten in modal window for IE - Works in FF, Chrome


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/1929f7b1
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/1929f7b1
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/1929f7b1

Branch: refs/heads/wicket-6.x
Commit: 1929f7b1db6f6b7d24fb1ec842be22a63506bcd1
Parents: 0b61b07
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Wed Jul 24 13:07:57 2013 +0300
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Wed Jul 24 13:07:57 2013 +0300

----------------------------------------------------------------------
 .../wicket/extensions/ajax/markup/html/modal/res/modal.js      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/1929f7b1/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
----------------------------------------------------------------------
diff --git 
a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
 
b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
index 9e3e85a..52279d7 100644
--- 
a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
+++ 
b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
@@ -1559,9 +1559,9 @@
                                for (var j = 0; j < this.tabbableTags.length; 
j++) {
                                        var tagElements = 
doc.getElementsByTagName(this.tabbableTags[j]);
                                        for (var k = 0 ; k < 
tagElements.length; k++) {
-                                               // if this is not an iframe 
window and the element is child of window content,
+                                               // if this is not an iframe 
window and the element is child of modal window,
                                                // don't disable tab on it
-                                               if (win.isIframe() === true || 
this.isParent(tagElements[k], win.content) === false) {
+                                               if (win.isIframe() === true || 
this.isParent(tagElements[k], win.window) === false) {
                                                        var element = 
tagElements[k];
                                                        element.hiddenTabIndex 
= element.tabIndex;
                                                        element.tabIndex="-1";
@@ -1685,4 +1685,4 @@
                }
        };
 
-})();
\ No newline at end of file
+})();

Reply via email to