129 // TODO ask for notification ...or use AUTO_CONTRIB ? |
129 // TODO ask for notification ...or use AUTO_CONTRIB ? |
130 parent.f_yesNoDialog(gettext("Do you want to subscribe to all replies notifications in discussions you participated in?"), gettext("Follow up"), |
130 parent.f_yesNoDialog(gettext("Do you want to subscribe to all replies notifications in discussions you participated in?"), gettext("Follow up"), |
131 function() { // special case : no waiting for the return, no error check, nothing ! |
131 function() { // special case : no waiting for the return, no error check, nothing ! |
132 var cfg = { |
132 var cfg = { |
133 method: "POST", |
133 method: "POST", |
134 data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email'], 'active':false}) |
134 data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'version_key':sv_version_key, 'email':ret['email'], 'active':false}) |
135 } ; |
135 } ; |
136 CY.io(sv_client_url, cfg); |
136 CY.io(sv_client_url, cfg); |
137 }, this, null, |
137 }, this, null, |
138 function() { // special case : no waiting for the return, no error check, nothing ! |
138 function() { // special case : no waiting for the return, no error check, nothing ! |
139 var cfg = { |
139 var cfg = { |
140 method: "POST", |
140 method: "POST", |
141 data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email'], 'active':true}) |
141 data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'version_key':sv_version_key, 'email':ret['email'], 'active':true}) |
142 } ; |
142 } ; |
143 CY.io(sv_client_url, cfg); |
143 CY.io(sv_client_url, cfg); |
144 }, this, null) ; |
144 }, this, null) ; |
145 } |
145 } |
146 } |
146 } |