File tree Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ $(document).ready(function () {
42
42
context . loadIndices ( ) ;
43
43
context . jq_pauseButton ( ) ;
44
44
context . jq_refreshInterval ( ) ;
45
- context . jq_changeHostButton ( ) ;
46
- $ ( "#host" ) . val ( global . host ) ;
45
+ context . jq_changeHostButton ( ) ;
46
+ $ ( "#host" ) . val ( global . host ) ;
47
47
global . loaded = true ;
48
48
}
49
49
} ,
@@ -61,12 +61,15 @@ $(document).ready(function () {
61
61
} ) ;
62
62
} ,
63
63
64
- jq_changeHostButton : function ( ) {
65
- $ ( "#changeHost" ) . click ( function ( e ) {
66
- global . host = $ ( "#host" ) . val ( ) . replace ( / h t t p : \/ \/ / g, "" ) ;
64
+ jq_changeHostButton : function ( ) {
65
+ var context = this ;
66
+ $ ( "#changeHost" ) . click ( function ( e ) {
67
+ global . host = $ ( "#host" ) . val ( ) . replace ( / h t t p : \/ \/ / g, "" ) ;
68
+ global . host = global . host . replace ( / \/ $ / g, "" ) ;
67
69
68
- } ) ;
69
- } ,
70
+ context . loadIndices ( ) ;
71
+ } ) ;
72
+ } ,
70
73
71
74
jq_refreshInterval : function ( ) {
72
75
$ ( "#changeRefresh" ) . click ( function ( e ) {
@@ -263,4 +266,4 @@ $(document).ready(function () {
263
266
app . run ( '#/' ) ;
264
267
265
268
} ) ( jQuery ) ;
266
- } ) ;
269
+ } ) ;
Original file line number Diff line number Diff line change 726
726
selector = selector && / # / . test ( selector ) && selector . replace ( / .* (? = # [ ^ \s ] * $ ) / , '' ) //strip for ie7
727
727
}
728
728
729
+ if ( selector == '#' ) {
730
+ selector = '#-' ;
731
+ }
732
+
729
733
$parent = $ ( selector )
730
734
$parent . length || ( $parent = $this . parent ( ) )
731
735
2156
2160
} )
2157
2161
2158
2162
2159
- } ( window . jQuery ) ;
2163
+ } ( window . jQuery ) ;
You can’t perform that action at this time.
0 commit comments