mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Automatically append 'Galaxy | ' to title instead of requiring it for all view titles.
This commit is contained in:
@@ -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/>' ) );
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user