mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
add option to deactivate livesearch, so the searchresult in studvw is shown in tabulator
This commit is contained in:
@@ -95,6 +95,7 @@ export default {
|
||||
searchbaroptions: {
|
||||
origin: 'stv',
|
||||
calcheightonly: true,
|
||||
nolivesearch: true,
|
||||
types: {
|
||||
student: Vue.computed(() => this.$p.t('search/type_student')),
|
||||
prestudent: Vue.computed(() => this.$p.t('search/type_prestudent'))
|
||||
|
||||
@@ -304,6 +304,8 @@ export default {
|
||||
this.calcSearchResultHeight();
|
||||
},
|
||||
search: function() {
|
||||
if(this.searchoptions?.nolivesearch === true) return;
|
||||
|
||||
this.abort();
|
||||
if( this.searchsettings.searchstr.length >= 2 ) {
|
||||
this.calcSearchResultExtent();
|
||||
@@ -417,6 +419,8 @@ export default {
|
||||
window.removeEventListener('resize', this.calcSearchResultExtent);
|
||||
},
|
||||
showsearchresult: function() {
|
||||
if(this.searchoptions?.nolivesearch === true) return;
|
||||
|
||||
if( this.searchsettings.searchstr.length >= 2 ) {
|
||||
this.showresult = true;
|
||||
window.addEventListener('resize', this.calcSearchResultExtent);
|
||||
|
||||
Reference in New Issue
Block a user