Commit 27365ae0 authored by Cedric Takongmo's avatar Cedric Takongmo

bugfix. gettextCheckerStricktOptions was undefined in textCheckerStricktOptionsForm

parent c8395d84
......@@ -20,11 +20,10 @@ Ext.define('ARSnova.view.speaker.form.textCheckerStricktOptionsForm', {
extend: 'Ext.form.FormPanel',
config: {
textCheckerStricktOptions: {
ignoreCaseSensitive: false,
ignoreWhitespaces: false,
ignorePunctuation: false
},
ignoreCaseSensitive: false,
ignoreWhitespaces: false,
ignorePunctuation: false,
scrollable: null,
cls: 'newQuestionOptions centerFormTitle'
......@@ -45,24 +44,24 @@ Ext.define('ARSnova.view.speaker.form.textCheckerStricktOptionsForm', {
},
items: [{
text: Messages.TEXT_CHECKER_IGNORE_CASE_SENSITIVE,
pressed: this.gettextCheckerStricktOptions().ignoreCaseSensitive,
pressed: this.getIgnoreCaseSensitive(),
scope: this,
handler: function () {
this.gettextCheckerStricktOptions().ignoreCaseSensitive = !this.gettextCheckerStricktOptions().ignoreCaseSensitive;
this.setIgnoreCaseSensitive(!this.getIgnoreCaseSensitive());
}
},{
text: Messages.TEXT_CHECKER_IGNORE_WHITESPACE,
pressed: this.gettextCheckerStricktOptions().ignoreWhitespaces,
pressed: this.getIgnoreWhitespaces(),
scope: this,
handler: function () {
this.gettextCheckerStricktOptions().ignoreWhitespaces = !this.gettextCheckerStricktOptions().ignoreWhitespaces;
this.setIgnoreWhitespaces(!this.getIgnoreWhitespaces());
}
}, {
text: Messages.TEXT_CHECKER_IGNORE_PUNCTUATION,
pressed: !this.gettextCheckerStricktOptions().ignorePunctuation ,
pressed: this.getIgnorePunctuation(),
scope: this,
handler: function () {
this.gettextCheckerStricktOptions().ignorePunctuation = !this.gettextCheckerStricktOptions().ignorePunctuation;
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