src/cm/media/js/client/c_sync.js
changeset 12 f69ff46d3240
parent 0 40c8f766c9b8
child 15 6ed2af5ab085
equal deleted inserted replaced
11:7b8167c4aa6f 12:f69ff46d3240
   122 				else if (isEdit())
   122 				else if (isEdit())
   123 					this._hideEditForm() ;
   123 					this._hideEditForm() ;
   124 				else if (isReply())
   124 				else if (isReply())
   125 					this._hideNewReplyForm() ;
   125 					this._hideNewReplyForm() ;
   126 				
   126 				
       
   127 				if ("ask_for_notification" in ret) {  
       
   128 					if (ret['ask_for_notification']) {
       
   129 						// TODO ask for notification ...or use AUTO_CONTRIB ?
       
   130 						parent.f_yesNoDialog(gettext("Do you wan to subscribe to all replies notifications in discussions where you have participated?"), gettext("Warning"), null, null, null, 
       
   131 							function() { // special case : no waiting for the return, no error check, nothing !
       
   132 									var cfg = {
       
   133 									method: "POST", 
       
   134 									data: urlEncode({'fun':'ownNotify', 'key':sv_key, 'email':ret['email']}) 
       
   135 								} ; 
       
   136 								CY.io(sv_client_url, cfg);
       
   137 							}, this, null) ;
       
   138 					}
       
   139 				}
       
   140 					
       
   141 				
   127 				if ("comment" in ret) { // won't be when add with a priori moderation
   142 				if ("comment" in ret) { // won't be when add with a priori moderation
   128 					var comment = ret['comment'] ;
   143 					var comment = ret['comment'] ;
   129 	
   144 	
   130 					gDb.upd(comment) ;
   145 					gDb.upd(comment) ;
   131 	
   146