You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ra...@apache.org on 2010/11/19 21:33:14 UTC
svn commit: r1037012 -
/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl
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>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org