diff options
author | Mark Wells <mark@freeside.biz> | 2016-04-05 12:51:49 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-04-05 13:06:08 -0700 |
commit | cc40b7d77271966a6922317774f63f8fa86d0871 (patch) | |
tree | b4de05e311617bc452e67345950a86f67f1c111b /httemplate/misc | |
parent | 97dab063eab4cd6106b2d4f96d574a9594984cf7 (diff) |
persistent user prefs for UI pages, #41397
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/process/set_page_pref.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/misc/process/set_page_pref.html b/httemplate/misc/process/set_page_pref.html new file mode 100644 index 000000000..a7f123116 --- /dev/null +++ b/httemplate/misc/process/set_page_pref.html @@ -0,0 +1,12 @@ +<%init> +my $path = $cgi->param('path'); +my $name = $cgi->param('name'); +my $tablenum = $cgi->param('num') || ''; +my $value = $cgi->param('value'); + +my $error = $FS::CurrentUser::CurrentUser->set_page_pref($path, $name, $tablenum, $value); +my $result = { 'error' => $error }; # in case someone cares + +http_header('Content-Type', 'application/json'); +</%init> +<% encode_json($result) %> |