@@ -17,36 +17,43 @@ jQuery(document).ready(function() {
17
17
var frontendServiceUrl = $ ( '#frontendServiceUrl' ) . text ( ) ;
18
18
19
19
function loadMainPage ( ) {
20
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
20
21
$ ( "#selectInstances" ) . visible ( ) ;
21
22
$ ( "#mainFrame" ) . load ( "subscriptionpage.html" ) ;
22
23
}
23
24
24
25
$ ( "#testRulesBtn" ) . click ( function ( ) {
26
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
25
27
$ ( "#selectInstances" ) . visible ( ) ;
26
28
$ ( "#mainFrame" ) . load ( "testRules.html" ) ;
27
29
} ) ;
28
30
29
31
$ ( "#eiInfoBtn" ) . click ( function ( ) {
32
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
30
33
$ ( "#selectInstances" ) . visible ( ) ;
31
34
$ ( "#mainFrame" ) . load ( "eiInfo.html" ) ;
32
35
} ) ;
33
36
34
37
$ ( "#loginBtn" ) . click ( function ( ) {
38
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
35
39
$ ( "#selectInstances" ) . visible ( ) ;
36
40
$ ( "#mainFrame" ) . load ( "login.html" ) ;
37
41
} ) ;
38
42
39
43
$ ( "#addInstanceBtn" ) . click ( function ( ) {
44
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
40
45
$ ( "#selectInstances" ) . invisible ( ) ;
41
46
$ ( "#mainFrame" ) . load ( "add-instances.html" ) ;
42
47
} ) ;
43
48
44
49
$ ( "#switcherBtn" ) . click ( function ( ) {
50
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
45
51
$ ( "#selectInstances" ) . invisible ( ) ;
46
52
$ ( "#mainFrame" ) . load ( "switch-backend.html" ) ;
47
53
} ) ;
48
54
49
55
$ ( "#logoutBtn" ) . click ( function ( ) {
56
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
50
57
$ ( "#selectInstances" ) . visible ( ) ;
51
58
$ . ajax ( {
52
59
url : frontendServiceUrl + "/auth/logout" ,
@@ -65,6 +72,7 @@ jQuery(document).ready(function() {
65
72
} ) ;
66
73
67
74
$ ( "#jmesPathRulesSetUpBtn" ) . click ( function ( ) {
75
+ $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
68
76
$ ( "#selectInstances" ) . visible ( ) ;
69
77
$ ( "#mainFrame" ) . load ( "jmesPathRulesSetUp.html" ) ;
70
78
} ) ;
@@ -161,30 +169,4 @@ jQuery(document).ready(function() {
161
169
ko . applyBindings ( new viewModel ( responseData ) , observableObject ) ;
162
170
}
163
171
} ) ;
164
-
165
- // Hide menu navbar when clicking a link
166
- $ ( "#subscriptionBtn" ) . click ( function ( e ) {
167
- e . preventDefault ( ) ;
168
- $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
169
- } ) ;
170
- $ ( "#testRulesBtn" ) . click ( function ( e ) {
171
- e . preventDefault ( ) ;
172
- $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
173
- } ) ;
174
- $ ( "#jmesPathRulesSetUpBtn" ) . click ( function ( e ) {
175
- e . preventDefault ( ) ;
176
- $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
177
- } ) ;
178
- $ ( "#eiInfoBtn" ) . click ( function ( e ) {
179
- e . preventDefault ( ) ;
180
- $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
181
- } ) ;
182
- $ ( "#addInstanceBtn" ) . click ( function ( e ) {
183
- e . preventDefault ( ) ;
184
- $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
185
- } ) ;
186
- $ ( "#switcherBtn" ) . click ( function ( e ) {
187
- e . preventDefault ( ) ;
188
- $ ( "#navbarResponsive" ) . removeClass ( "show" ) ;
189
- } ) ;
190
172
} ) ;
0 commit comments