Skip to content

Commit

Permalink
Revise page viewing caller
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 19, 2016
1 parent e3bb858 commit 3d423f2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions config/plugins/visualizations/charts/static/app.js
Expand Up @@ -43,16 +43,9 @@ define( [ 'mvc/ui/ui-modal', 'mvc/ui/ui-portlet', 'mvc/ui/ui-misc', 'utils/utils
/** Loads a view and makes sure that all others are hidden */
go: function( view_id ) {
$( '.tooltip' ).hide();
switch ( view_id ) {
case 'editor' :
this.editor_view.show();
this.viewer_view.hide();
break;
case 'viewer' :
this.editor_view.hide();
this.viewer_view.show();
break;
}
this.viewer_view.hide();
this.editor_view.hide();
this[ view_id + '_view' ].show();
},

/** Returns root path */
Expand Down

0 comments on commit 3d423f2

Please sign in to comment.