diff --git a/forest/__init__.py b/forest/__init__.py index 7b73e8720..eecc9fe38 100644 --- a/forest/__init__.py +++ b/forest/__init__.py @@ -23,7 +23,7 @@ .. automodule:: forest.presets """ -__version__ = '0.17.0' +__version__ = '0.17.1' from .config import * from . import ( diff --git a/forest/static/forest-min.js b/forest/static/forest-min.js new file mode 100644 index 000000000..071b53527 --- /dev/null +++ b/forest/static/forest-min.js @@ -0,0 +1,26 @@ +(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i "Hello, World!" + + +// Populate variable options from dataset value +const link_selects = function(dataset_select, variable_select, source) { + let label = dataset_select.value; + if (label !== "") { + let index = source.data['datasets'].indexOf(label) + let defaults = ["Please specify"]; + variable_select.options = defaults.concat( + source.data['variables'][index]); + } +} + + +module.exports = { + helloWorld, + link_selects +} + +},{}],2:[function(require,module,exports){ +window.forest = require('./forest') + + +},{"./forest":1}]},{},[2]);