[Bbs2ch-cvs 105] CVS update: bbs2chreader/content/bbs2chreader

Back to archive index

flyson flyso****@users*****
2006年 5月 27日 (土) 21:50:19 JST


Index: bbs2chreader/content/bbs2chreader/post-wizard.xul
diff -u bbs2chreader/content/bbs2chreader/post-wizard.xul:1.10 bbs2chreader/content/bbs2chreader/post-wizard.xul:1.11
--- bbs2chreader/content/bbs2chreader/post-wizard.xul:1.10	Fri Sep 16 00:15:26 2005
+++ bbs2chreader/content/bbs2chreader/post-wizard.xul	Sat May 27 21:50:19 2006
@@ -30,7 +30,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" persist="checked"/>
+			<checkbox id="chkSage" label="sage" persist="checked" oncommand="mailDisabled()"/>
 		</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.14 bbs2chreader/content/bbs2chreader/post-wizard.js:1.15
--- bbs2chreader/content/bbs2chreader/post-wizard.js:1.14	Tue Sep 13 23:03:20 2005
+++ bbs2chreader/content/bbs2chreader/post-wizard.js	Sat May 27 21:50:19 2006
@@ -96,6 +96,8 @@
 	wizPostWizard.title = "POST: " + gPost.title + " [bbs2chreader]";
 	document.getElementById("lblThreadTitle").value = gPost.title;
 
+	mailDisabled();
+
 	checkBeLogin();
 }
 
@@ -110,6 +112,10 @@
 }
 
 
+function mailDisabled(){
+	document.getElementById("txtMail").disabled = document.getElementById("chkSage").checked;
+}
+
 /**
  * ハードコーティングな文字列をスクリプト内部で利用可能な文字列に変換
  * @param aString string 文字列


bbs2ch-cvs メーリングリストの案内
Back to archive index