diff options
author | Josh Blum | 2013-03-26 22:14:15 -0500 |
---|---|---|
committer | Josh Blum | 2013-03-26 22:14:15 -0500 |
commit | 3868f8f0156e9e936c39908e43762273be2d4e51 (patch) | |
tree | e22552ea3a09abead0b7ab5c4a82a10b3e83b5ff /python/gras/query/chart_factory.js | |
parent | 66d14812e6deaedf151cdb619797f00b057a28c0 (diff) | |
download | sandhi-3868f8f0156e9e936c39908e43762273be2d4e51.tar.gz sandhi-3868f8f0156e9e936c39908e43762273be2d4e51.tar.bz2 sandhi-3868f8f0156e9e936c39908e43762273be2d4e51.zip |
gras: various tweaks to the gui elements
Diffstat (limited to 'python/gras/query/chart_factory.js')
-rw-r--r-- | python/gras/query/chart_factory.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/python/gras/query/chart_factory.js b/python/gras/query/chart_factory.js index 682a968..7c7888d 100644 --- a/python/gras/query/chart_factory.js +++ b/python/gras/query/chart_factory.js @@ -16,9 +16,10 @@ var gras_chart_get_registry = function() **********************************************************************/ function gras_chart_factory_setup(registry, point) { - var id = point.id; - registry.top_id = id; - $('#top_name').append(' - ' + id); + //gui init for factory controls + gras_chart_factory_init(registry); + + //block registry and checkboxes init $.each(point.blocks, function(id, block) { registry.block_ids.push(id); @@ -33,6 +34,9 @@ function gras_chart_factory_setup(registry, point) $(div).append(input); $(container).append(div); }); + + //try to load last settings + try{gras_chart_load(registry);}catch(e){} } /*********************************************************************** @@ -188,7 +192,10 @@ function gras_chart_factory_init(registry) }); //init overall config gui element for rate - var overall_rate = $('#chart_update_rate'); + var overall_rate = $('#chart_update_rate').attr({size:3}); + overall_rate.spinner({ + min: 1, max: 10, stop: function(event, ui){$(this).change();} + }); overall_rate.val(registry.overall_rate); overall_rate.change(function() { |