Automatically append 'Galaxy | ' to title instead of requiring it for all view titles.

This commit is contained in:
Dannon Baker
2017-09-08 12:29:09 -04:00
parent 84de84294c
commit 6b2277e37d
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ define( [ 'layout/masthead', 'layout/panel', 'mvc/ui/ui-modal' ], function( Mast
Galaxy.modal = this.modal = new Modal.View();
Galaxy.display = this.display = function( view ) {
if ( view.title ){
window.document.title = view.title;
window.document.title = "Galaxy | " + view.title;
}
self.center.display( view );
};
@@ -2,7 +2,7 @@
define( [ 'utils/utils', 'mvc/grid/grid-view', 'mvc/history/history-model', 'mvc/history/copy-dialog' ], function( Utils, GridView, HistoryModel, historyCopyDialog ) {
var View = Backbone.View.extend({
title: "Galaxy Histories",
title: "Histories",
initialize: function( options ) {
var self = this;
this.setElement( $( '<div/>' ) );
+1 -1
View File
@@ -77,7 +77,7 @@ define(['libs/bootstrap-tour'],function(BootstrapTour) {
});
};
var ToursView = Backbone.View.extend({
title: "Galaxy Tours",
title: "Tours",
// initialize
initialize: function() {
var self = this;
@@ -91,7 +91,7 @@ define( [ 'mvc/form/form-view', 'mvc/ui/ui-misc', 'utils/query-string-parsing' ]
/** View of the main user preference panel with links to individual user forms */
var View = Backbone.View.extend({
title: "Galaxy User Preferences",
title: "User Preferences",
initialize: function() {
this.model = new Model();
this.setElement( '<div/>' );
@@ -137,7 +137,7 @@ define( [ "libs/toastr", "mvc/tag", "mvc/workflow/workflow-model" ], function(
/** View of the main workflow list page */
var WorkflowListView = Backbone.View.extend({
title: "Galaxy Workflows",
title: "Workflows",
initialize: function() {
this.setElement( '<div/>' );
_.bindAll(this, 'adjustActiondropdown')