Updated vocabulary

This commit is contained in:
Pierre 2018-01-17 06:55:26 +01:00
parent b49570028c
commit 531fd0305b
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;