src/cm/media/js/client/c_sync.js
changeset 17 a4be0b8a905d
parent 15 6ed2af5ab085
child 24 c8a95e540b79
--- a/src/cm/media/js/client/c_sync.js	Thu Dec 03 11:55:50 2009 +0100
+++ b/src/cm/media/js/client/c_sync.js	Thu Dec 03 15:55:39 2009 +0100
@@ -127,11 +127,18 @@
 				if ("ask_for_notification" in ret) {  
 					if (ret['ask_for_notification']) {
 						// TODO ask for notification ...or use AUTO_CONTRIB ?
-						parent.f_yesNoDialog(gettext("Do you want to subscribe to all replies notifications in discussions you participated in?"), gettext("Follow up"), null, null, null, 
+						parent.f_yesNoDialog(gettext("Do you want to subscribe to all replies notifications in discussions you participated in?"), gettext("Follow up"), 
 							function() { // special case : no waiting for the return, no error check, nothing !
 									var cfg = {
 									method: "POST", 
-									data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email']}) 
+									data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email'], 'active':false}) 
+								} ; 
+								CY.io(sv_client_url, cfg);
+							}, this, null,
+							function() { // special case : no waiting for the return, no error check, nothing !
+									var cfg = {
+									method: "POST", 
+									data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email'], 'active':true}) 
 								} ; 
 								CY.io(sv_client_url, cfg);
 							}, this, null) ;