Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Fixing Scope accessing the menu state variable globally #2

Open
wants to merge 1 commit into
base: 7.x-1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions static/recline.view.MultiDatasetChoroplethMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ this.recline.View = this.recline.View || {};
var state = this.state.toJSON();
if (state['resources'][state['activeDataset']].dataset != this.model) {
self.breakpoints = state['resources'][state['activeDataset']].breakpoints ? state['resources'][state['activeDataset']].breakpoints : [];

self.unit_of_measure = state['resources'][state['activeDataset']].unitOfMeasure ? state['resources'][state['activeDataset']].unitOfMeasure :'';
self.model = state['resources'][state['activeDataset']].dataset;
self.base_color = state['resources'][state['activeDataset']].baseColor;
Expand Down Expand Up @@ -492,6 +493,7 @@ this.recline.View = this.recline.View || {};
*/
_setSelectedResourceCheckBox: function() {
var self = this;
var state = this.state.toJSON();
// Set all the checkboxes for pointbased data to match the current state
var active_points = state['activePoints'];
// Setting controls directly - CLUNKY - Needs a more solid internal method.
Expand Down