From 4f4ce3c71bb69e3b55029325901e3d16a8142376 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 21 Mar 2021 10:42:27 -0400 Subject: Remove shortcut validation (#3548) Before, only standard shortcuts were supported. When other shortcuts were configured, they were filtered out. Now, those shortcuts are stored in the configuration and an alert message is displayed to alert the user that he is using non-standard shortcuts. See #3481 --- app/views/configure/shortcut.phtml | 8 +++++++- app/views/helpers/javascript_vars.phtml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml index 2194457ee..719fb4713 100644 --- a/app/views/configure/shortcut.phtml +++ b/app/views/configure/shortcut.phtml @@ -11,9 +11,15 @@ shortcuts; ?> + + +

+ , ', $nonStandard)) ?> +

+ +
- diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml index 089175f7d..c6600a9a8 100644 --- a/app/views/helpers/javascript_vars.phtml +++ b/app/views/helpers/javascript_vars.phtml @@ -1,6 +1,6 @@ mark_when; -$s = validateShortcutList(FreshRSS_Context::$user_conf->shortcuts); +$s = FreshRSS_Context::$user_conf->shortcuts; $extData = Minz_ExtensionManager::callHook('js_vars', []); echo htmlspecialchars(json_encode(array( 'context' => array( -- cgit v1.2.3