Skip to content

Commit f77e2d4

Browse files
committed
only hide notification after timeout for non-mixed sequences
1 parent 538ba8c commit f77e2d4

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

public/js/query.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,12 @@ export class SearchQueryWidget extends Component {
296296
if (type) {
297297
$('#' + type + '-sequence-notification').show('drop', { direction: 'up' }).addClass('active');
298298

299-
this.notification_timeout = setTimeout(function () {
300-
$('.notifications .active').hide('drop', { direction: 'up' }).removeClass('active');
301-
}, 5000);
302-
303-
if (type === 'mixed') {
299+
//hide notification after 5s only for non-mixed sequences
300+
if (type !== 'mixed') {
301+
this.notification_timeout = setTimeout(function () {
302+
$('.notifications .active').hide('drop', { direction: 'up' }).removeClass('active');
303+
}, 5000);
304+
} else {
304305
this.indicateError();
305306
}
306307
}

0 commit comments

Comments
 (0)