mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-10-31 02:04:53 +00:00 
			
		
		
		
	Updated vocabulary
This commit is contained in:
		| @@ -131,16 +131,16 @@ ComunicWeb.components.posts.interface = { | ||||
| 	 * Send a response to a survey | ||||
| 	 *  | ||||
| 	 * @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 | ||||
| 	 */ | ||||
| 	survey_send_response: function(postID, responseID, callback){ | ||||
| 	survey_send_response: function(postID, choiceID, callback){ | ||||
|  | ||||
| 		//Prepare an API request | ||||
| 		apiURI = "surveys/send_response"; | ||||
| 		params = { | ||||
| 			postID: postID, | ||||
| 			responseID: responseID | ||||
| 			choiceID: choiceID | ||||
| 		}; | ||||
|  | ||||
| 		//Perform the request | ||||
|   | ||||
| @@ -676,13 +676,13 @@ ComunicWeb.components.posts.ui = { | ||||
| 					chooseButton.onclick = function(){ | ||||
| 						 | ||||
| 						//Get selected answer ID | ||||
| 						var response_id = surveyResponseChooser.value; | ||||
| 						var choice_id = surveyResponseChooser.value; | ||||
|  | ||||
| 						//Lock send button | ||||
| 						chooseButton.disabled = true; | ||||
|  | ||||
| 						//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 | ||||
| 							chooseButton.disabled = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pierre
					Pierre