Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Mobile
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Mobile
Commits
85755cc8
There was an error fetching the commit references. Please try again later.
Commit
85755cc8
authored
8 years ago
by
Andreas Gärtner
Browse files
Options
Downloads
Patches
Plain Diff
Show flashcard new question option only in flashcard variant
parent
a502246e
1 merge request
!39
Flashcards revisited
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/app/view/speaker/NewQuestionPanel.js
+8
-0
8 additions, 0 deletions
src/main/webapp/app/view/speaker/NewQuestionPanel.js
with
8 additions
and
0 deletions
src/main/webapp/app/view/speaker/NewQuestionPanel.js
+
8
−
0
View file @
85755cc8
...
...
@@ -211,8 +211,10 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
var
me
=
this
;
var
config
=
ARSnova
.
app
.
globalConfig
;
formatItems
.
push
({
itemId
:
Messages
.
FLASHCARD
,
hidden
:
this
.
getVariant
!==
"
flashcard
"
,
text
:
messageAppendix
.
length
?
Messages
.
FLASHCARD
:
Messages
.
FLASHCARD_SHORT
...
...
@@ -444,6 +446,12 @@ Ext.define('ARSnova.view.speaker.NewQuestionPanel', {
onActivate
:
function
()
{
this
.
releasePart
.
setHidden
(
!
localStorage
.
getItem
(
'
courseId
'
));
ARSnova
.
app
.
getController
(
'
Feature
'
).
applyNewQuestionPanelChanges
(
this
);
if
(
this
.
getVariant
()
===
'
flashcard
'
)
{
var
indexMap
=
this
.
getOptionIndexMap
();
this
.
questionOptions
.
setPressedButtons
([
indexMap
[
Messages
.
FLASHCARD
]]);
this
.
optionsToolbar
.
setHidden
(
true
);
}
},
getOptionIndexMap
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment