This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 2ec8b47cacb5a7b4f5acf7a23a515edbe415e620 Author: jcouteau <couteau@codelutin.com> Date: Mon Aug 19 11:25:59 2019 +0200 Lint --- pollen-ui-riot-js/src/main/web/js/PollForm.js | 11 +++-------- pollen-ui-riot-js/src/main/web/js/PollService.js | 8 ++++---- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/js/PollForm.js b/pollen-ui-riot-js/src/main/web/js/PollForm.js index 06eff007..58f8162c 100644 --- a/pollen-ui-riot-js/src/main/web/js/PollForm.js +++ b/pollen-ui-riot-js/src/main/web/js/PollForm.js @@ -66,7 +66,7 @@ class PollForm { return Promise.resolve(); } - getSteps(multi){ + getSteps(multi) { let steps; if (multi) { steps = this.stepsMulti; @@ -169,7 +169,7 @@ class PollForm { this.isInit = true; this._updateSteps(); this.setStep(0); - this.questionEdited=0; + this.questionEdited = 0; }); } @@ -230,7 +230,7 @@ class PollForm { addNewQuestion() { let newQuestion = new Question("", "", ""); this.setQuestionDefaultSettings(newQuestion); - this.questionEdited = this.questionEdited+1; + this.questionEdited = this.questionEdited + 1; this.model.questions.push(newQuestion); } @@ -310,11 +310,6 @@ class PollForm { } } - setMulti(multi) { - if (multi) { - } - } - _updateSteps() { let steps = ["general", "choices", "options"]; if (this.model.pollType === "RESTRICTED") { diff --git a/pollen-ui-riot-js/src/main/web/js/PollService.js b/pollen-ui-riot-js/src/main/web/js/PollService.js index cf6b3f44..644aa7b3 100644 --- a/pollen-ui-riot-js/src/main/web/js/PollService.js +++ b/pollen-ui-riot-js/src/main/web/js/PollService.js @@ -50,9 +50,9 @@ class PollService extends FetchService { delete question.resultVisibility; delete question.continuousResults; delete question.commentVisibility; - if (question.id==="") { + if (question.id === "") { delete question.id; - }; + } }); delete poll2.voteCountingType; delete poll2.alreadyParticipants; @@ -72,9 +72,9 @@ class PollService extends FetchService { delete question.resultVisibility; delete question.continuousResults; delete question.commentVisibility; - if (question.id==="") { + if (question.id === "") { delete question.id; - }; + } }); delete poll2.voteCountingType; delete poll2.alreadyParticipants; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.