mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use regular anchors for masthead routes
This commit is contained in:
@@ -36,11 +36,7 @@ var Collection = Backbone.Collection.extend({
|
||||
title : _l('Workflow'),
|
||||
tooltip : _l('Chain tools into workflows'),
|
||||
disabled : !Galaxy.user.id,
|
||||
url : 'workflow',
|
||||
target : 'galaxy_main',
|
||||
onclick : function() {
|
||||
window.location = Galaxy.root + 'workflow';
|
||||
}
|
||||
url : 'workflow'
|
||||
});
|
||||
|
||||
//
|
||||
@@ -190,15 +186,7 @@ var Collection = Backbone.Collection.extend({
|
||||
target : '_blank'
|
||||
},{
|
||||
title : _l('Interactive Tours'),
|
||||
url : 'tours',
|
||||
onclick : function(){
|
||||
if (Galaxy.router){
|
||||
Galaxy.router.navigate('tours', {'trigger': true});
|
||||
} else {
|
||||
// Redirect and use clientside routing to go to tour index
|
||||
window.location = Galaxy.root + "tours";
|
||||
}
|
||||
}
|
||||
url : 'tours'
|
||||
}]
|
||||
};
|
||||
options.terms_url && helpTab.menu.push({
|
||||
@@ -263,26 +251,10 @@ var Collection = Backbone.Collection.extend({
|
||||
title : _l('Logged in as') + ' ' + Galaxy.user.get( 'email' )
|
||||
},{
|
||||
title : _l('Preferences'),
|
||||
url : 'user',
|
||||
target : 'galaxy_main',
|
||||
onclick : function() {
|
||||
if ( Galaxy.router ) {
|
||||
Galaxy.router.push( 'user' );
|
||||
} else {
|
||||
window.location = Galaxy.root + 'user';
|
||||
}
|
||||
}
|
||||
url : 'user'
|
||||
},{
|
||||
title : _l('Custom Builds'),
|
||||
url : 'custom_builds',
|
||||
target : 'galaxy_main',
|
||||
onclick : function() {
|
||||
if ( Galaxy.router ) {
|
||||
Galaxy.router.push( 'custom_builds' );
|
||||
} else {
|
||||
window.location = Galaxy.root + 'custom_builds';
|
||||
}
|
||||
}
|
||||
url : 'custom_builds'
|
||||
},{
|
||||
title : _l('Logout'),
|
||||
url : 'user/logout',
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user