mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-12 16:58:51 +00:00
Monotone-Parent: 18957933ff736ec180d169de7fd49cb3822d876b
Monotone-Revision: 3d1fc008307ae248946dc870848b9b73d180f2b6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-12-09T14:47:39
This commit is contained in:
@@ -868,7 +868,7 @@ function log(message) {
|
||||
try {
|
||||
if (window.frameElement && window.frameElement.id) {
|
||||
logWindow = parent.window;
|
||||
while (logWindow.frameElement && window.frameElement.id)
|
||||
while (logWindow.frameElement && window.frameElement.id)
|
||||
logWindow = logWindow.parent.window;
|
||||
}
|
||||
else {
|
||||
@@ -1029,7 +1029,7 @@ function setSearchCriteria(event) {
|
||||
|
||||
if (searchValue.ghostPhrase == searchValue.value)
|
||||
searchValue.value = "";
|
||||
|
||||
|
||||
searchValue.ghostPhrase = this.innerHTML;
|
||||
searchCriteria.value = this.getAttribute('id');
|
||||
|
||||
@@ -1797,10 +1797,12 @@ function parent$(element) {
|
||||
|
||||
if (div)
|
||||
p = parent.document;
|
||||
else
|
||||
else if (this.opener)
|
||||
p = this.opener.document;
|
||||
else
|
||||
p = null;
|
||||
|
||||
return p.getElementById(element);
|
||||
return (p ? p.getElementById(element) : null);
|
||||
}
|
||||
|
||||
/* stubs */
|
||||
|
||||
Reference in New Issue
Block a user