From 39c0fe3697c71e9cfeec74c020b0c31fca376dc0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Feb 2021 12:27:26 +0300 Subject: [PATCH] shorten many invocations of Ajax.Request in inline form methods --- classes/pref/prefs.php | 141 ++++++++++++++------------------ plugins/af_readability/init.php | 16 ++-- plugins/af_redditimgur/init.php | 13 ++- plugins/mail/init.php | 14 ++-- plugins/nsfw/init.php | 10 +-- 5 files changed, 80 insertions(+), 114 deletions(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 4a4aa45d6..b760affa0 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -291,18 +291,14 @@ class Pref_Prefs extends Handler_Protected { -
@@ -350,32 +346,28 @@ class Pref_Prefs extends Handler_Protected { - @@ -459,23 +451,20 @@ class Pref_Prefs extends Handler_Protected { - @@ -521,22 +510,20 @@ class Pref_Prefs extends Handler_Protected {
- @@ -806,26 +793,23 @@ class Pref_Prefs extends Handler_Protected {
- @@ -956,20 +940,15 @@ class Pref_Prefs extends Handler_Protected { ?> diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index 43d064fc7..a1f92815c 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -69,19 +69,15 @@ class Af_Readability extends Plugin { - +