Skip to content

Commit

Permalink
fix thumbnail saving for graph viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed Apr 2, 2016
1 parent 08f46f2 commit b0607bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions include/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ function saveGraphFilter(section) {
href=graphPage+'?action=save'+
'&columns='+$('#columns').val()+
'&graphs='+$('#graphs').val()+
'&thumbnails='+$('#thumbnails').is(':checked')+
'&predefined_timespan='+$('#predefined_timespan').val()+
'&predefined_timeshift='+$('#predefined_timeshift').val()+
'&thumbnails='+$('#thumbnails').is(':checked');
Expand Down
7 changes: 3 additions & 4 deletions lib/html_graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,25 @@ function html_graph_validate_preview_request_vars() {
'thumbnails' => array(
'filter' => FILTER_VALIDATE_REGEXP,
'options' => array('options' => array('regexp' => '(true|false)')),
'pageset' => true,
'default' => read_user_setting('thumbnail_section_preview') == 'on' ? 'true':'false'
),
'graph_list' => array(
'filter' => FILTER_VALIDATE_REGEXP,
'options' => array('options' => array('regexp' => '/^([\,0-9]+)$/')),
'pageset' => true,
'default' => read_user_setting('thumbnail_section_preview') == 'on' ? 'true':'false'
'default' => ''
),
'graph_add' => array(
'filter' => FILTER_VALIDATE_REGEXP,
'options' => array('options' => array('regexp' => '/^([\,0-9]+)$/')),
'pageset' => true,
'default' => read_user_setting('thumbnail_section_preview') == 'on' ? 'true':'false'
'default' => ''
),
'graph_remove' => array(
'filter' => FILTER_VALIDATE_REGEXP,
'options' => array('options' => array('regexp' => '/^([\,0-9]+)$/')),
'pageset' => true,
'default' => read_user_setting('thumbnail_section_preview') == 'on' ? 'true':'false'
'default' => ''
),
'style' => array(
'filter' => FILTER_DEFAULT,
Expand Down
2 changes: 1 addition & 1 deletion lib/html_tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function html_validate_tree_vars() {
'filter' => FILTER_VALIDATE_REGEXP,
'options' => array('options' => array('regexp' => '(true|false)')),
'pageset' => true,
'default' => 'true'
'default' => read_user_setting('thumbnail_section_tree_2')
)
);

Expand Down

0 comments on commit b0607bb

Please sign in to comment.