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:36 -0700 |
commit | 06809c379e25e6753d39ca79a39c977e5194c696 (patch) | |
tree | 939e5eacd056b404aefc637fbf23e4a3ae6b305d /httemplate/misc | |
parent | 4b39a40f110de90403417bc75a40f35a2861126c (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) %> |