From 0825059e46c08bcca3bcba50288ce52c61c49929 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 21 Jul 2020 15:29:56 +0200 Subject: [PATCH] Use modern UploadHandler to update style coverPhoto --- .../install/files/acp/templates/styleAdd.tpl | 65 ++++--- .../Core/Acp/Ui/Style/CoverPhoto/Delete.js | 63 ------- .../Core/Acp/Ui/Style/CoverPhoto/Upload.js | 59 ------- .../files/lib/acp/form/StyleAddForm.class.php | 42 ++++- .../lib/acp/form/StyleEditForm.class.php | 12 +- .../files/lib/data/style/Style.class.php | 10 +- .../lib/data/style/StyleAction.class.php | 163 ++++-------------- 7 files changed, 120 insertions(+), 294 deletions(-) delete mode 100644 wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Style/CoverPhoto/Delete.js delete mode 100644 wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Style/CoverPhoto/Upload.js diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 803ef8eb9c..4bfd920cd3 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -6,10 +6,10 @@ {js application='wcf' file='WCF.ColorPicker' bundle='WCF.Combined'}