From 5081a5d3264e46b40d6356466046388625963b92 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 12 Aug 2012 14:59:28 +0200 Subject: [PATCH] change gnuplot with using select element --- templates/data/items.html.ep | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/data/items.html.ep b/templates/data/items.html.ep index 96361e1..340461e 100644 --- a/templates/data/items.html.ep +++ b/templates/data/items.html.ep @@ -53,12 +53,15 @@ items % session('timefmt', $timefmt ); timefmt: - % if ( $export ) { - +with: +%= select_field with => [qw( points dots lines steps )] + % } + + <%= include 'data/items/' . session('show') %>
@@ -93,5 +96,9 @@ $(document).ready( function(){ if ( this.checked ) $(this).closest('form').submit(); }); + $('select[name=with]').change( function(){ + console.debug( 'with', this ); + $(this).closest('form').submit(); + }); }); -- 2.20.1