mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Updated vocabulary
This commit is contained in:
		@@ -131,16 +131,16 @@ ComunicWeb.components.posts.interface = {
 | 
				
			|||||||
	 * Send a response to a survey
 | 
						 * Send a response to a survey
 | 
				
			||||||
	 * 
 | 
						 * 
 | 
				
			||||||
	 * @param {int} postID The ID of the target post
 | 
						 * @param {int} postID The ID of the target post
 | 
				
			||||||
	 * @param {int} reponseID The ID of the selected response
 | 
						 * @param {int} choiceID The ID of the selected choice
 | 
				
			||||||
	 * @param {function} callback This function is called when we got a response
 | 
						 * @param {function} callback This function is called when we got a response
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	survey_send_response: function(postID, responseID, callback){
 | 
						survey_send_response: function(postID, choiceID, callback){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Prepare an API request
 | 
							//Prepare an API request
 | 
				
			||||||
		apiURI = "surveys/send_response";
 | 
							apiURI = "surveys/send_response";
 | 
				
			||||||
		params = {
 | 
							params = {
 | 
				
			||||||
			postID: postID,
 | 
								postID: postID,
 | 
				
			||||||
			responseID: responseID
 | 
								choiceID: choiceID
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Perform the request
 | 
							//Perform the request
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -676,13 +676,13 @@ ComunicWeb.components.posts.ui = {
 | 
				
			|||||||
					chooseButton.onclick = function(){
 | 
										chooseButton.onclick = function(){
 | 
				
			||||||
						
 | 
											
 | 
				
			||||||
						//Get selected answer ID
 | 
											//Get selected answer ID
 | 
				
			||||||
						var response_id = surveyResponseChooser.value;
 | 
											var choice_id = surveyResponseChooser.value;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
						//Lock send button
 | 
											//Lock send button
 | 
				
			||||||
						chooseButton.disabled = true;
 | 
											chooseButton.disabled = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
						//Perform a request on the server
 | 
											//Perform a request on the server
 | 
				
			||||||
						ComunicWeb.components.posts.interface.survey_send_response(infos.ID, response_id, function(response){
 | 
											ComunicWeb.components.posts.interface.survey_send_response(infos.ID, choice_id, function(response){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							//Unlock button
 | 
												//Unlock button
 | 
				
			||||||
							chooseButton.disabled = false;
 | 
												chooseButton.disabled = false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user