Commit 9b334d36 authored by Thomas Rehm's avatar Thomas Rehm

[BUGFIX] Fixed code style errors and tabs/whitespaces

parent 856b9f23
......@@ -190,7 +190,7 @@ Ext.define('ARSnova.view.FreetextAnswerPanel', {
isStudent: function () {
return ARSnova.app.isSessionOwner !== true;
},
isFixedAnswer: function() {
isFixedAnswer: function () {
return self.questionObj.fixedAnswer;
}
}
......
......@@ -32,7 +32,7 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
'ARSnova.view.speaker.form.FreeTextQuestion',
'ARSnova.view.speaker.form.ImageUploadPanel',
'ARSnova.view.MarkDownEditorPanel',
'ARSnova.view.speaker.form.TextChecker'
'ARSnova.view.speaker.form.TextChecker'
],
config: {
......@@ -149,7 +149,7 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
id: 'abstentionPart'
});
this.uploadView = Ext.create('ARSnova.view.speaker.form.ImageUploadPanel', {
this.uploadView = Ext.create('ARSnova.view.speaker.form.ImageUploadPanel', {
handlerScope: this,
addRemoveButton: true,
activateTemplates: false,
......@@ -560,7 +560,6 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
},
dispatch: function (values, button) {
var promise = new RSVP.Promise();
ARSnova.app.getController('Questions').add({
sessionKeyword: sessionStorage.getItem('keyword'),
......@@ -580,9 +579,9 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
strictMode: values.strictMode,
rating: values.rating,
correctAnswer: values.correctAnswer,
ignoreCaseSensitive: values.ignoreCaseSensitive,
ignoreWhitespaces: values.ignoreWhitespaces,
ignorePunctuation: values.ignorePunctuation,
ignoreCaseSensitive: values.ignoreCaseSensitive,
ignoreWhitespaces: values.ignoreWhitespaces,
ignorePunctuation: values.ignorePunctuation,
showStatistic: 1,
gridSize: values.gridSize,
offsetX: values.offsetX,
......
......@@ -69,7 +69,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
'ARSnova.view.speaker.form.YesNoQuestion',
'ARSnova.view.speaker.form.FlashcardQuestion',
'ARSnova.view.speaker.QuestionStatisticChart',
'ARSnova.view.speaker.form.TextChecker'
'ARSnova.view.speaker.form.TextChecker'
],
config: {
......@@ -344,7 +344,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
if (questionValues.gridType === "moderation") {
panel.abstentionPart.setHidden(true);
panel.textCheckerPart.setHidden(true);
panel.textCheckerPart.setHidden(true);
panel.absteionAlternative.show();
} else {
panel.absteionAlternative.hide();
......@@ -475,7 +475,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
}
panel.answerEditForm.setHidden(!enable);
panel.abstentionPart.setHidden(!enable);
panel.textCheckerPart.setHidden(!enable);
panel.textCheckerPart.setHidden(!enable);
}
});
......@@ -853,7 +853,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
},
this.actionsPanel,
this.abstentionPart,
this.textCheckerPart,
this.textCheckerPart,
this.absteionAlternative,
this.answerForm,
this.answerEditForm,
......
......@@ -55,22 +55,21 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
pressed: this.getIgnoreCaseSensitive(),
scope: this,
handler: function () {
this.setIgnoreCaseSensitive(!this.getIgnoreCaseSensitive());
this.setIgnoreCaseSensitive(!this.getIgnoreCaseSensitive());
}
},{
}, {
text: Messages.TEXT_CHECKER_IGNORE_WHITESPACE,
pressed: this.getIgnoreWhitespaces(),
scope: this,
handler: function () {
this.setIgnoreWhitespaces(!this.getIgnoreWhitespaces());
this.setIgnoreWhitespaces(!this.getIgnoreWhitespaces());
}
}, {
text: Messages.TEXT_CHECKER_IGNORE_PUNCTUATION,
pressed: this.getIgnorePunctuation(),
scope: this,
handler: function () {
this.setIgnorePunctuation(!this.getIgnorePunctuation());
this.setIgnorePunctuation(!this.getIgnorePunctuation());
}
}]
}]
......@@ -106,7 +105,7 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
ui: 'action',
style: 'width: 50%'
},
items:[this.freeAnswerButton, this.fixAnswerButton]
items: [this.freeAnswerButton, this.fixAnswerButton]
});
var freefixField = Ext.create('Ext.form.FieldSet', {
xtype: 'fieldset',
......@@ -137,7 +136,7 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
ui: 'action',
style: 'width: 50%'
},
items:[this.easyButton, this.strictButton]
items: [this.easyButton, this.strictButton]
});
var selectField = Ext.create('Ext.form.FieldSet', {
xtype: 'fieldset',
......@@ -159,8 +158,6 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
hidden: true
});
// Eingabefeld
this.textarea = Ext.create('Ext.plugins.ResizableTextArea', {
name: 'text',
placeHolder: Messages.FORMAT_PLACEHOLDER
......@@ -186,7 +183,7 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
]);
},
getValues: function() {
getValues: function () {
var result = {};
//To be synced with backend
......
Markdown is supported
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