File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -560,6 +560,9 @@ function submitTab(evt) {
560560function submitThisForm ( param = null ) {
561561 var form = this . form ;
562562 var filter = null ; // The filter that we previously moved to the left sidebar menu
563+ if ( ! form && param && typeof param === 'object' && ( 'tagName' in param && param . tagName == 'FORM' ) ) { // A form can be passed as a parameter.
564+ form = param ;
565+ }
563566 if ( navbar_type == 'left' && ! form ) {
564567 if ( currentView == 'console' ) {
565568 // We get the form that we process
@@ -1962,7 +1965,7 @@ function resetSelectElement(el) {
19621965 if ( currentView == 'events' ) {
19631966 filterEvents ( clickedElement = selectElement ) ;
19641967 } else {
1965- submitThisForm ( ) ;
1968+ submitThisForm ( this . closest ( 'form' ) ) ;
19661969 }
19671970}
19681971
You can’t perform that action at this time.
0 commit comments