Skip to content

Commit

Permalink
clear the content of an iframe when the modalbox was closed (fixes #1…
Browse files Browse the repository at this point in the history
…988)
  • Loading branch information
upsilon committed Mar 31, 2011
1 parent 73f50c7 commit cac474c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions web/js/opensocial-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions web/js/opensocial-util.js.src
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@ IframeModalBox.prototype = {
if (this.closeCallback) {
this.closeCallback(callback_params);
}
this.clear();
},

clear: function() {
this.modalIframe.contentDocument.open();
this.modalIframe.contentDocument.close();
}
}

2 comments on commit cac474c

@upsilon
Copy link
Member Author

@upsilon upsilon commented on cac474c Apr 3, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iframe内のdocumentオブジェクトの取得方法はブラウザによって異なるため要修正
Firefox → this.modalIframe.contentDocument または this.modalIframe.contentWindow.document
WebKit → this.modalIframe.contentDocument
IE → this.modalIframe.contentWindow.document

@upsilon
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上記は @b33909b にて対応しました

Please sign in to comment.