svn commit: r1037012 - /lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl
[email protected] Fri, 19 Nov 2010 20:33:14 -0000
| Newsgroups | gmane.comp.cms.lenya.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: rainer
Date: Fri Nov 19 20:33:14 2010
New Revision: 1037012
URL: http://svn.apache.org/viewvc?rev=1037012&view=rev
Log:
TinyMCE Integration:
IE8 requires a slightly different way to reset the window.beforeunload
event handler: setting it to "null".
Modified:
lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl
Modified: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl?rev=1037012&r1=1037011&r2=1037012&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl Fri Nov 19 20:33:14 2010
@@ -225,10 +225,10 @@
</textarea>
<xsl:text>
</xsl:text>
- <input i18n:attr="value" type="submit" name="submit" value="Save" onclick="javascript:window.onbeforeunload = true;"/>
+ <input i18n:attr="value" type="submit" name="submit" value="Save" onclick="javascript:tinymce.DOM.win.onbeforeunload = null;"/>
<xsl:text>
</xsl:text>
- <input i18n:attr="value" type="submit" name="cancel" value="Cancel" onclick="javascript:window.onbeforeunload = true;"/>
+ <input i18n:attr="value" type="submit" name="cancel" value="Cancel" onclick="javascript:tinymce.DOM.win.onbeforeunload = null;"/>
<xsl:text>
</xsl:text>
</form>