src/cm/media/js/client/c_sync.js
changeset 24 c8a95e540b79
parent 17 a4be0b8a905d
child 103 61fd17f9ab78
equal deleted inserted replaced
23:dbbd99172620 24:c8a95e540b79
   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 				}