mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use list to detect acceptable values for communication settings
This commit is contained in:
@@ -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,
|
||||
|
||||
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