Commit 72c78e5b authored by Curtis Adam's avatar Curtis Adam
Browse files

Show no search field when calling the use cases "Take me to my card indexes or Repetitorien"

parent 62ae96de
......@@ -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);
}
......
......@@ -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');
......
Supports Markdown
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