Skip to content

Commit

Permalink
Bug fix: structure page, customizing colors when coloring by search.
Browse files Browse the repository at this point in the history
  • Loading branch information
mriffle committed Apr 26, 2018
1 parent a37efeb commit 9a690d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proxl_web_app/WebRoot/js/structure-viewer-color-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ LinkColorHandler.prototype.clearUserColorByLength = function() {
};

LinkColorHandler.prototype.setUserColorByLengthSingleColor = function( params ) {

var linkLengthLabel = params.linkLengthLabel;
var linkColor = params.linkColor;

Expand Down
6 changes: 3 additions & 3 deletions proxl_web_app/WebRoot/js/structure-viewer-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4722,7 +4722,7 @@ var drawLegend = function() {
$legend_by_search_search_id_for_search_X_jq.text( searchId );

$legend_by_search_color_block_for_search_X.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SAVED_BACKGROUND_COLOR, colorForBlock );
$legend_by_search_color_block_for_search_X.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SEARCH_IDS, searchIds );
$legend_by_search_color_block_for_search_X.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SEARCH_IDS, projectSearchIds );
}

if ( _searches.length <= 3 ) {
Expand Down Expand Up @@ -4755,7 +4755,7 @@ var drawLegend = function() {
$legend_by_search_container_for_search_X.show();
$legend_by_search_color_block_for_search_X.css({ "background-color" : colorForBlock } );
$legend_by_search_color_block_for_search_X.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SAVED_BACKGROUND_COLOR, colorForBlock );
$legend_by_search_color_block_for_search_X.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SEARCH_IDS, searchIds );
$legend_by_search_color_block_for_search_X.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SEARCH_IDS, projectSearchIds );

}
}
Expand All @@ -4774,7 +4774,7 @@ var drawLegend = function() {
$legend_by_search_container_for_search_1_2_3.show();
$legend_by_search_color_block_for_search_1_2_3.css({ "background-color" : colorForBlock } );
$legend_by_search_color_block_for_search_1_2_3.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SAVED_BACKGROUND_COLOR, colorForBlock );
$legend_by_search_color_block_for_search_1_2_3.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SEARCH_IDS, searchIds );
$legend_by_search_color_block_for_search_1_2_3.data( COLOR_BY_SEARCH_COLOR_BLOCK__DATA__SEARCH_IDS, projectSearchIds );
}
}

Expand Down

0 comments on commit 9a690d1

Please sign in to comment.