flyson
flyso****@users*****
2005年 9月 13日 (火) 23:03:20 JST
Index: bbs2chreader/content/bbs2chreader/post-wizard.xul diff -u bbs2chreader/content/bbs2chreader/post-wizard.xul:1.7 bbs2chreader/content/bbs2chreader/post-wizard.xul:1.8 --- bbs2chreader/content/bbs2chreader/post-wizard.xul:1.7 Tue Sep 13 22:41:22 2005 +++ bbs2chreader/content/bbs2chreader/post-wizard.xul Tue Sep 13 23:03:20 2005 @@ -7,7 +7,8 @@ %post-wizard-dtd; ]> <wizard id="wizPostWizard" title="post" - onload="startup()" onwizardfinish="reloadThreadPage()" + onload="startup()" onwizardcancel="shutdown()" + onwizardfinish="shutdown(); reloadThreadPage()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/x-javascript" src="chrome://bbs2chreader/content/global.js"/> @@ -28,7 +29,7 @@ <textbox id="txtName" value="" flex="2"/> <label value="&lblMail.value;" style="text-align:right"/> <textbox id="txtMail" value="" flex="1"/> - <checkbox id="chkSage" label="sage"/> + <checkbox id="chkSage" label="sage" persist="checked"/> </hbox> <textbox id="txtMsg" value="" multiline="true" flex="1" onkeypress="event.preventBubble()"/> Index: bbs2chreader/content/bbs2chreader/post-wizard.js diff -u bbs2chreader/content/bbs2chreader/post-wizard.js:1.13 bbs2chreader/content/bbs2chreader/post-wizard.js:1.14 --- bbs2chreader/content/bbs2chreader/post-wizard.js:1.13 Tue Sep 13 22:41:22 2005 +++ bbs2chreader/content/bbs2chreader/post-wizard.js Tue Sep 13 23:03:20 2005 @@ -99,6 +99,17 @@ checkBeLogin(); } + +/** + * 終了時の処理 + */ +function shutdown(){ + // checked の値を完全に覚えさせる + var chkSage = document.getElementById("chkSage"); + if(!chkSage.checked) chkSage.setAttribute("checked", "false"); +} + + /** * ハードコーティングな文字列をスクリプト内部で利用可能な文字列に変換 * @param aString string 文字列