File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
js/apps/system/_admin/aardvark/APP/frontend/js/views Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
devel
2
2
-----
3
3
4
+ * fixes a routing issue within the web ui after the use of views
4
5
5
6
* fixes some graph data parsing issues in the ui, e.g. cleaning up duplicate
6
7
edges inside the graph viewer.
Original file line number Diff line number Diff line change 72
72
73
73
redirectToGraphViewer : function ( e ) {
74
74
var name = $ ( e . currentTarget ) . attr ( 'id' ) ;
75
- name = name . substr ( 0 , name . length - 5 ) ;
76
- window . location . hash = window . location . hash . substr ( 0 , window . location . hash . length - 1 ) + '/' + encodeURIComponent ( name ) ;
75
+ if ( name ) {
76
+ name = name . substr ( 0 , name . length - 5 ) ;
77
+ window . App . navigate ( 'graph/' + encodeURIComponent ( name ) , { trigger : true } ) ;
78
+ }
77
79
} ,
78
80
79
81
loadGraphViewer : function ( graphName , refetch ) {
Original file line number Diff line number Diff line change 30
30
events : {
31
31
'click #createView' : 'createView' ,
32
32
'click #viewsToggle' : 'toggleSettingsDropdown' ,
33
- 'click .tile' : 'gotoView' ,
33
+ 'click .tile-view ' : 'gotoView' ,
34
34
'keyup #viewsSearchInput' : 'search' ,
35
35
'click #viewsSearchSubmit' : 'search' ,
36
36
'click #viewsSortDesc' : 'sorting'
151
151
gotoView : function ( e ) {
152
152
var name = $ ( e . currentTarget ) . attr ( 'id' ) ;
153
153
if ( name ) {
154
- window . location . hash = window . location . hash . substr ( 0 , window . location . hash . length - 1 ) + '/' + encodeURIComponent ( name ) ;
154
+ var url = 'view/' + encodeURIComponent ( name ) ;
155
+ window . App . navigate ( url , { trigger : true } ) ;
155
156
}
156
157
} ,
157
158
You can’t perform that action at this time.
0 commit comments