fixed undefined property in JavaScript

This commit is contained in:
Sebastian Mendel
2007-03-21 17:46:43 +00:00
parent a1fc83f342
commit e92d08fbc6

View File

@@ -77,10 +77,12 @@ if (parent.querywindow && !parent.querywindow.closed && parent.querywindow.locat
if (window.parent.frame_content) {
// reset content frame name, as querywindow needs to set a unique name
// before submitting form data, and navigation frame needs the original name
if (window.parent.frame_content.name != 'frame_content') {
if (typeof(window.parent.frame_content.name) != 'undefined'
&& window.parent.frame_content.name != 'frame_content') {
window.parent.frame_content.name = 'frame_content';
}
if (window.parent.frame_content.id != 'frame_content') {
if (typeof(window.parent.frame_content.id) != 'undefined'
&& window.parent.frame_content.id != 'frame_content') {
window.parent.frame_content.id = 'frame_content';
}
//window.parent.frame_content.setAttribute('name', 'frame_content');