125 this._hideNewReplyForm() ; |
125 this._hideNewReplyForm() ; |
126 |
126 |
127 if ("ask_for_notification" in ret) { |
127 if ("ask_for_notification" in ret) { |
128 if (ret['ask_for_notification']) { |
128 if (ret['ask_for_notification']) { |
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"), null, null, null, |
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']}) |
134 data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email'], 'active':false}) |
|
135 } ; |
|
136 CY.io(sv_client_url, cfg); |
|
137 }, this, null, |
|
138 function() { // special case : no waiting for the return, no error check, nothing ! |
|
139 var cfg = { |
|
140 method: "POST", |
|
141 data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email'], 'active':true}) |
135 } ; |
142 } ; |
136 CY.io(sv_client_url, cfg); |
143 CY.io(sv_client_url, cfg); |
137 }, this, null) ; |
144 }, this, null) ; |
138 } |
145 } |
139 } |
146 } |