Commit 83513621 authored by Thomas Rehm's avatar Thomas Rehm

[FEATURE] Deleted obsolote file and changed the references to this file

parent cb29d769
......@@ -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.textCheckerStricktOptionsForm'
'ARSnova.view.speaker.form.TextChecker'
],
config: {
......@@ -148,7 +148,7 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
this.abstentionPart = Ext.create('ARSnova.view.speaker.form.AbstentionForm', {
id: 'abstentionPart'
});
this.uploadView = Ext.create('ARSnova.view.speaker.form.ImageUploadPanel', {
handlerScope: this,
addRemoveButton: true,
......@@ -560,7 +560,7 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
},
dispatch: function (values, button) {
var promise = new RSVP.Promise();
ARSnova.app.getController('Questions').add({
sessionKeyword: sessionStorage.getItem('keyword'),
......
......@@ -70,7 +70,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.textCheckerStricktOptionsForm'
'ARSnova.view.speaker.form.TextChecker'
],
config: {
......@@ -336,7 +336,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
if (panel.questionObj.questionType === 'flashcard') {
panel.abstentionPart.hide();
panel.textCheckerStricktOptionsFormPart.hide();
panel.textCheckerPart.hide();
if (panel.questionObj.fcImage) {
panel.answerEditForm.setFcImage(panel.questionObj.fcImage);
......@@ -345,7 +345,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
if (questionValues.gridType === "moderation") {
panel.abstentionPart.setHidden(true);
panel.textCheckerStricktOptionsFormPart.setHidden(true);
panel.textCheckerPart.setHidden(true);
panel.absteionAlternative.show();
} else {
panel.absteionAlternative.hide();
......@@ -361,18 +361,18 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
question.set("subject", values.subject);
question.set("text", values.questionText);
question.set("abstention", panel.abstentionPart.getAbstention());
question.set("ignoreCaseSensitive", panel.textCheckerStricktOptionsFormPart.getIgnoreCaseSensitive());
question.set("ignoreWhitespaces", panel.textCheckerStricktOptionsFormPart.getIgnoreWhitespaces());
question.set("ignorePunctuation", panel.textCheckerStricktOptionsFormPart.getIgnorePunctuation());
question.set("ignoreCaseSensitive", panel.textCheckerPart.getIgnoreCaseSensitive());
question.set("ignoreWhitespaces", panel.textCheckerPart.getIgnoreWhitespaces());
question.set("ignorePunctuation", panel.textCheckerPart.getIgnorePunctuation());
question.raw.subject = values.subject;
question.raw.text = values.questionText;
question.raw.abstention = panel.abstentionPart.getAbstention();
question.raw.ignoreCaseSensitive = panel.textCheckerStricktOptionsFormPart.getIgnoreCaseSensitive();
question.raw.ignoreWhitespaces = panel.textCheckerStricktOptionsFormPart.getIgnoreWhitespaces();
question.raw.ignorePunctuation = panel.textCheckerStricktOptionsFormPart.getIgnorePunctuation();
question.raw.ignoreCaseSensitive = panel.textCheckerPart.getIgnoreCaseSensitive();
question.raw.ignoreWhitespaces = panel.textCheckerPart.getIgnoreWhitespaces();
question.raw.ignorePunctuation = panel.textCheckerPart.getIgnorePunctuation();
panel.subject.resetOriginalValue();
panel.textarea.resetOriginalValue();
......@@ -467,7 +467,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
}
panel.answerEditForm.setHidden(!enable);
panel.abstentionPart.setHidden(!enable);
panel.textCheckerStricktOptionsFormPart.setHidden(!enable);
panel.textCheckerPart.setHidden(!enable);
}
});
......@@ -774,8 +774,8 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
abstention: this.questionObj.abstention,
hidden: true
});
this.textCheckerStricktOptionsFormPart = Ext.create('ARSnova.view.speaker.form.textCheckerStricktOptionsForm', {
this.textCheckerPart = Ext.create('ARSnova.view.speaker.form.textChecker', {
ignoreCaseSensitive: this.questionObj.ignoreCaseSensitive,
ignoreWhitespaces: this.questionObj.ignoreWhitespaces,
ignorePunctuation: this.questionObj.ignorePunctuation,
......@@ -841,7 +841,7 @@ Ext.define('ARSnova.view.speaker.QuestionDetailsPanel', {
},
this.actionsPanel,
this.abstentionPart,
this.textCheckerStricktOptionsFormPart,
this.textCheckerPart,
this.absteionAlternative,
this.answerForm,
this.answerEditForm,
......
......@@ -18,7 +18,6 @@
*/
Ext.define('ARSnova.view.speaker.form.TextChecker', {
extend: 'Ext.form.FormPanel',
requires: ['ARSnova.view.speaker.form.textCheckerStricktOptionsForm'],
config: {
pressed: 'free',
......@@ -72,10 +71,7 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
}]
}]
});
this.textCheckerStricktOptionsFormPart = Ext.create('ARSnova.view.speaker.form.textCheckerStricktOptionsForm', {
id: 'textCheckerStricktOptionsFormPart',
hidden: true
});
var freeAnswerButton = Ext.create('Ext.Button', {
text: Messages.TEXT_CHECKER_FREETEXT,
......@@ -185,7 +181,6 @@ Ext.define('ARSnova.view.speaker.form.TextChecker', {
mainFormPanel,
selectField,
strictOptions,
//this.textCheckerStricktOptionsFormPart,
ratingField
]);
},
......
/*
* This file is part of ARSnova Mobile.
* Copyright (C) 2011-2012 Christian Thomas Weber
* Copyright (C) 2012-2015 The ARSnova Team
*
* ARSnova Mobile is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ARSnova Mobile is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ARSnova Mobile. If not, see <http://www.gnu.org/licenses/>.
*/
Ext.define('ARSnova.view.speaker.form.textCheckerStricktOptionsForm', {
extend: 'Ext.form.FormPanel',
config: {
ignoreCaseSensitive: false,
ignoreWhitespaces: false,
ignorePunctuation: false,
scrollable: null,
cls: 'newQuestionOptions centerFormTitle'
},
constructor: function () {
this.callParent(arguments);
this.add([{
xtype: 'fieldset',
title: Messages.TEXT_CHECKER_STRICT_OPTIONS,
items: [{
xtype: 'segmentedbutton',
style: 'margin: auto',
allowMultiple: true,
//cls: 'yesnoOptions',
defaults: {
ui: 'action',
style: 'width: 33.3%'
},
items: [{
text: Messages.TEXT_CHECKER_IGNORE_CASE_SENSITIVE,
pressed: this.getIgnoreCaseSensitive(),
scope: this,
handler: function () {
this.setIgnoreCaseSensitive(!this.getIgnoreCaseSensitive());
}
},{
text: Messages.TEXT_CHECKER_IGNORE_WHITESPACE,
pressed: this.getIgnoreWhitespaces(),
scope: this,
handler: function () {
this.setIgnoreWhitespaces(!this.getIgnoreWhitespaces());
}
}, {
text: Messages.TEXT_CHECKER_IGNORE_PUNCTUATION,
pressed: this.getIgnorePunctuation(),
scope: this,
handler: function () {
this.setIgnorePunctuation(!this.getIgnorePunctuation());
}
}]
}]
}]);
}
});
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