take timefmt from session for newly loaded data
[MojoFacets.git] / templates / data / items.html.ep
index 43ef6dd..9a885d8 100644 (file)
@@ -49,7 +49,7 @@ items
 % my $export = param('export');
 % session('export', $export );
 <input type=checkbox name=export value=1 title="export" <%= $export ? 'checked' : '' %> >
-% my $timefmt = param('timefmt');
+% my $timefmt = param('timefmt') || session("timefmt");
 % session('timefmt', $timefmt );
 timefmt: <input name=timefmt value="<%= $timefmt %>" placeholder="%d.%m.%Y %H:%M:%S">