Skip to content

Commit

Permalink
Merge pull request #28 from guerler/remove_mako_user_pref_000
Browse files Browse the repository at this point in the history
Restore changes
  • Loading branch information
bgruening authored Nov 3, 2016
2 parents 8f49202 + 301c5ec commit d5804d6
Show file tree
Hide file tree
Showing 14 changed files with 335 additions and 494 deletions.
15 changes: 6 additions & 9 deletions client/galaxy/scripts/layout/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,11 @@ var Collection = Backbone.Collection.extend({
tooltip : 'Account preferences and saved data',
menu : [{
title : 'Logged in as ' + Galaxy.user.get( 'email' )
},
{
},{
title : 'User Preferences',
url : 'user?cntrller=user',
target : 'galaxy_main'
},
{
},{
title : 'Custom Builds',
url : 'user/dbkeys',
target : 'galaxy_main'
Expand Down Expand Up @@ -268,15 +266,14 @@ var Collection = Backbone.Collection.extend({
}]
};

if( window.Galaxy.config.enable_new_user_preferences ) {
if( Galaxy.config.enable_new_user_preferences ) {
userTab.menu.push({
title : 'New User Preferences',
url : 'user',
onclick : function() {
if (Galaxy.app) {
Galaxy.app.display(new Preferences.UserPreferences());
}
else {
if ( Galaxy.app ) {
Galaxy.app.display( new Preferences.UserPreferences() );
} else {
window.location = Galaxy.root + "user";
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/layout/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ var PageLayoutView = Backbone.View.extend( BaseMVC.LoggableMixin ).extend({
port = window.Galaxy.config.communication_server_port,
$chat_icon_element = $( "#show-chat-online" );
/** Check if the user has deactivated the communication in it's personal settings */
if ( window.Galaxy.user.attributes.preferences !== undefined && ( window.Galaxy.user.attributes.preferences.communication_server === '1' || window.Galaxy.user.attributes.preferences.communication_server === 'true' ) ) {
if ( Galaxy.user.attributes.preferences && [ '1', 'true' ].indexOf( Galaxy.user.attributes.preferences.communication_server ) != -1 ) {
// See if the configured communication server is available
$.ajax({
url: host + ":" + port,
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/form/form-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ define([], function() {
.append( $( '<div/>' ).addClass( 'ui-form-preview' ) );
}
});
});
});
5 changes: 1 addition & 4 deletions client/galaxy/scripts/mvc/form/form-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ define(['utils/utils',
Galaxy.emit.debug('form-parameters::_addRow()', 'Auto matched field type (' + input_def.type + ').');
}
input_def.value === undefined && ( input_def.value = null );
if ( field.value ) { // added for input submit
field.value( input_def.value );
}
return field;
},

Expand Down Expand Up @@ -219,4 +216,4 @@ define(['utils/utils',
return {
View: View
};
});
});
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/form/form-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ function( Utils, Ui, Portlet, Repeat, InputElement, Parameters ) {
return {
View: View
};
});
});
22 changes: 1 addition & 21 deletions client/galaxy/style/less/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -1762,24 +1762,4 @@ div.toolTitleNoSection
color:black;
text-align:left;
}
}

// for user preferences javascript files
.manage-userinfo,
.link-filter,
.change-password,
.change-permissions,
.manage-api-keys,
.manage-toolbox-filters,
.change-communication-setting,
.logout-user {
cursor: pointer;
}

.edit-address, delete-address {
margin-right: 2px;
}

.toolForm {
margin-top: 1%;
}
}
Loading

0 comments on commit d5804d6

Please sign in to comment.