Commit 372691f3 authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Fixed further style errors.

parent 9266f531
......@@ -40,7 +40,7 @@ Ext.define("ARSnova.controller.RoundManagement", {
},
updateQuestionOnRoundStart: function (question, object) {
if (question.questionObj.piRoundFinished && question.questionObj.piRound == 1) {
if (question.questionObj.piRoundFinished && question.questionObj.piRound === 1) {
question.questionObj.piRound = 2;
}
......
......@@ -662,7 +662,9 @@ Ext.define('ARSnova.proxy.RestProxy', {
},
countPiAnswers: function (sessionKeyword, questionId, piRound, callbacks) {
if (!piRound) piRound = 0;
if (!piRound) {
piRound = 0;
}
this.arsjax.request({
url: "lecturerquestion/" + questionId + "/answer/?piround=" + piRound,
......
......@@ -142,7 +142,7 @@ Ext.define('ARSnova.view.FreetextQuestion', {
text: Messages.SAVE,
handler: this.saveHandler,
scope: this
}, !!!this.questionObj.abstention ? {hidden: true} : { //What the hell?! !!! === !
}, !this.questionObj.abstention ? {hidden: true} : {
flex: 1,
xtype: 'button',
ui: 'action',
......
......@@ -134,8 +134,13 @@ Ext.define('ARSnova.view.components.CountdownTimer', {
this.setDefaultMinutes(this.slider.getValue());
}
if (!mins) mins = this.getDefaultMinutes();
if (!secs) secs = this.getDefaultSeconds();
if (!mins) {
mins = this.getDefaultMinutes();
}
if (!secs) {
secs = this.getDefaultSeconds();
}
this.maxSeconds = this.seconds = secs * this.milliseconds;
this.maxMinutes = this.minutes = mins * this.maxSeconds;
......@@ -192,7 +197,9 @@ Ext.define('ARSnova.view.components.CountdownTimer', {
update: function (panel) {
var me = panel;
if (!me.running) return;
if (!me.running) {
return;
}
var time = new Date().getTime();
......@@ -201,18 +208,12 @@ Ext.define('ARSnova.view.components.CountdownTimer', {
if (me.seconds === 0) {
if (me.minutes > 0) {
if (me.minutes > 0) {
me.seconds = me.maxSeconds;
}
me.seconds = me.maxSeconds;
}
}
me.showTimer();
if (me.minutes < me.maxMinutes / 2) {
// todo: beep
}
if (me.running) {
if (me.minutes > 0) {
setTimeout(function () {
......
......@@ -487,7 +487,6 @@ Ext.define('ARSnova.view.speaker.QuestionStatisticChart', {
this.questionChart.showPercentage = false;
isStacked = true;
break;
case 3:
default:
fields = ['percent-round1', 'percent-round2'];
percentages = ['value-round1', 'value-round2'];
......
......@@ -44,7 +44,7 @@ Ext.define('ARSnova.view.speaker.form.FreeTextQuestion', {
listeners: {
scope: this,
change: function (toggle, newValue, oldValue, eOpts) {
me.textAnswerEnabled = newValue == 0 ? false : true;
me.textAnswerEnabled = newValue === 0 ? false : true;
}
},
value: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment