Skip to content
This repository was archived by the owner on Mar 2, 2020. It is now read-only.

Commit 369e861

Browse files
committed
Merge pull request #55 from linojon/nested_iframe
allow select on nested iframe
2 parents 35ca575 + 3c001c8 commit 369e861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mail_view/email.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
<% if mail.multipart? %>
8585
<dd>
86-
<select onchange="top.messageBody.location=this.options[this.selectedIndex].value;">
86+
<select onchange="document.getElementsByName('messageBody')[0].src=this.options[this.selectedIndex].value;">
8787
<option value="?part=text%2Fhtml">View as HTML email</option>
8888
<option value="?part=text%2Fplain">View as plain-text email</option>
8989
</select>

0 commit comments

Comments
 (0)