Skip to content

Commit

Permalink
#376: Implement survey questions and answers
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolagsiderov committed Jul 8, 2021
1 parent d0f1e59 commit ea822af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions APPartment.Web/Areas/Surveys/Views/CreateQuestion.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@
var question = $('#surveyQuestion').val();
var typeID = $('#questionType').find(':selected').val();
$(this).css("pointer-events", "none");
$('#cancel-postAssign').css("pointer-events", "none");
$('#cancel-postQuestion').css("pointer-events", "none");
$.ajax({
type: 'POST',
url: baseApplicationPath + `Surveys/Surveys/CreateQuestion`,
data: { surveyID: @surveyID, question: question, typeID: typeID },
success: function () {
$('#loading').fadeOut();
window.location.reload();
$('#cancel-postQuestion').css("pointer-events", "");
$('#cancel-postQuestion').click();
},
error: function (req, status, error) {
alert(error);
Expand Down

0 comments on commit ea822af

Please sign in to comment.