src/cm/media/js/client/c_sync.js
changeset 17 a4be0b8a905d
parent 15 6ed2af5ab085
child 24 c8a95e540b79
equal deleted inserted replaced
16:036705244cab 17:a4be0b8a905d
   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 				}