projects
/
MojoFacets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change gnuplot with using select element
[MojoFacets.git]
/
templates
/
data
/
items.html.ep
diff --git
a/templates/data/items.html.ep
b/templates/data/items.html.ep
index
96361e1
..
340461e
100644
(file)
--- a/
templates/data/items.html.ep
+++ b/
templates/data/items.html.ep
@@
-53,12
+53,15
@@
items
% session('timefmt', $timefmt );
timefmt: <input name=timefmt value="<%= $timefmt %>">
% session('timefmt', $timefmt );
timefmt: <input name=timefmt value="<%= $timefmt %>">
-</form>
% if ( $export ) {
% if ( $export ) {
-<img id=gnuplot src="/gnuplot?timefmt=<%= $timefmt %>">
+with:
+%= select_field with => [qw( points dots lines steps )]
+<img id=gnuplot src="/gnuplot?timefmt=<%= $timefmt %>&with=<%= param('with') %>">
% }
% }
+</form>
+
<%= include 'data/items/' . session('show') %>
<div class=pager>
<%= include 'data/items/' . session('show') %>
<div class=pager>
@@
-93,5
+96,9
@@
$(document).ready( function(){
if ( this.checked )
$(this).closest('form').submit();
});
if ( this.checked )
$(this).closest('form').submit();
});
+ $('select[name=with]').change( function(){
+ console.debug( 'with', this );
+ $(this).closest('form').submit();
+ });
});
</script>
});
</script>