File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -267,25 +267,22 @@ var visgexf = {
267267 } ) . draw ( 2 , 2 , 2 ) ;
268268 } ,
269269
270- resetSearch : function ( ) {
271- document . location . href = document . location . pathname ;
272- } ,
273-
274270 resetFilter : function ( ) {
275271 visgexf . activeFilterId = null ;
276272 visgexf . activeFilterVal = null ;
277273 $ ( '.graphfilter li' ) . removeClass ( 'active' ) ;
278274 visgexf . resetNodes ( ) ;
279275 } ,
280276
281- // FIXME avoid code duplication
282- reset : function ( ) {
283- visgexf . activeFilterId = null ;
284- visgexf . activeFilterVal = null ;
277+ resetAll : function ( ) {
278+ visgexf . resetFilter ( ) ;
285279 visgexf . searchInput . val ( '' ) ;
286- $ ( '.graphfilter li' ) . removeClass ( 'active' ) ;
287- visgexf . resetNodes ( ) ;
288280 dialog . hide ( ) ;
281+ document . location . hash = '' ;
282+ } ,
283+
284+ resetSearch : function ( ) {
285+ visgexf . resetAll ( ) ;
289286 }
290287} ;
291288
You can’t perform that action at this time.
0 commit comments