Webページ内のselect要素等が生成するポップアップに反応しないように

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6295 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-02-09 23:11:02 +00:00
parent f87006c5da
commit 8057f93e9c

View File

@ -971,7 +971,8 @@ catch(e) {
return; return;
case 'popupshowing': case 'popupshowing':
if (!this.evaluateXPath( if (aEvent.originalTarget.boxObject &&
!this.evaluateXPath(
'local-name() = "tooltip" or local-name() ="panel" or '+ 'local-name() = "tooltip" or local-name() ="panel" or '+
'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]', 'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]',
aEvent.originalTarget, aEvent.originalTarget,
@ -986,7 +987,8 @@ catch(e) {
return; return;
case 'popuphiding': case 'popuphiding':
if (!this.evaluateXPath( if (aEvent.originalTarget.boxObject &&
!this.evaluateXPath(
'local-name() = "tooltip" or local-name() ="panel" or '+ 'local-name() = "tooltip" or local-name() ="panel" or '+
'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]', 'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]',
aEvent.originalTarget, aEvent.originalTarget,