Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
Jonas-Ian Kuche
cards
Commits
72c78e5b
Commit
72c78e5b
authored
Apr 12, 2019
by
Curtis Adam
Browse files
Show no search field when calling the use cases "Take me to my card indexes or Repetitorien"
parent
62ae96de
Changes
2
Hide whitespace changes
Inline
Side-by-side
imports/ui/filter/index/index.js
View file @
72c78e5b
...
...
@@ -145,8 +145,6 @@ Template.filterIndexCreate.onRendered(function () {
if
(
Route
.
isMyCardsets
())
{
if
(
Session
.
get
(
'
useCaseType
'
)
===
1
)
{
$
(
'
#setCardsetFormModal
'
).
modal
(
'
show
'
);
}
else
if
(
Session
.
get
(
'
useCaseType
'
)
===
5
)
{
MainNavigation
.
focusSearchBar
();
}
}
LoginTasks
.
showUseCasesModal
();
...
...
@@ -189,7 +187,7 @@ Template.filterIndexRepetitorium.helpers({
});
Template
.
filterIndexRepetitorium
.
onRendered
(
function
()
{
if
(
Session
.
get
(
'
useCaseType
'
)
===
2
||
Session
.
get
(
'
useCaseType
'
)
===
6
)
{
if
(
Session
.
get
(
'
useCaseType
'
)
===
2
)
{
MainNavigation
.
focusSearchBar
();
Session
.
set
(
'
useCaseType
'
,
0
);
}
...
...
imports/ui/useCases/modal/modal.js
View file @
72c78e5b
...
...
@@ -55,22 +55,10 @@ Template.useCasesModal.onRendered(function () {
Router
.
go
(
'
learn
'
);
break
;
case
5
:
if
(
Route
.
isMyCardsets
())
{
setTimeout
(
function
()
{
MainNavigation
.
focusSearchBar
();
},
500
);
}
else
{
Router
.
go
(
'
create
'
);
}
Router
.
go
(
'
create
'
);
break
;
case
6
:
if
(
Route
.
isPersonalRepetitorien
())
{
setTimeout
(
function
()
{
MainNavigation
.
focusSearchBar
();
},
500
);
}
else
{
Router
.
go
(
'
personalRepetitorien
'
);
}
Router
.
go
(
'
personalRepetitorien
'
);
break
;
case
7
:
Router
.
go
(
'
transcripts
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment