src/cm/media/js/client/c_sync.js
changeset 106 36165e7cd1f0
parent 103 61fd17f9ab78
child 329 00df963f91fb
equal deleted inserted replaced
105:f2ba05546abc 106:36165e7cd1f0
   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"), 
   130 						parent.f_yesNoDialog(gettext("Do you want to be notified of all replies in all discussions you participated in?"), gettext("Reply notification"), 
   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, 'version_key':sv_version_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 								} ;