From cc40b7d77271966a6922317774f63f8fa86d0871 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 5 Apr 2016 12:51:49 -0700 Subject: persistent user prefs for UI pages, #41397 --- httemplate/misc/process/set_page_pref.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 httemplate/misc/process/set_page_pref.html (limited to 'httemplate/misc') 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'); + +<% encode_json($result) %> -- cgit v1.2.1