From 6126510176572b864dc3976faf0dca6228cf1158 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Wed, 14 Feb 2018 17:14:18 +0200 Subject: [PATCH] Fix focal area removal not working in IE11 and MS Edge. Fix #4284 --- CHANGELOG.txt | 1 + docs/releases/2.1.rst | 1 + .../static_src/wagtailimages/js/focal-point-chooser.js | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 53641aa0b..6cf7f929b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -16,6 +16,7 @@ Changelog * Fix: Draftail now supports features specified via the `WAGTAILADMIN_RICH_TEXT_EDITORS` setting (Todd Dembrey) * Fix: Password reset form no longer indicates whether the email is recognised, as per standard Django behaviour (Bertrand Bordage) * Fix: `UserAttributeSimilarityValidator` is now correctly enforced on user creation / editing forms (Tim Heap) + * Fix: Focal area removal not working in IE11 and MS Edge (Thibaud Colas) 2.0.1 (xx.xx.xxxx) - IN DEVELOPMENT diff --git a/docs/releases/2.1.rst b/docs/releases/2.1.rst index 54ade5f1d..dd85a321a 100644 --- a/docs/releases/2.1.rst +++ b/docs/releases/2.1.rst @@ -30,6 +30,7 @@ Bug fixes * Draftail now supports features specified via the ``WAGTAILADMIN_RICH_TEXT_EDITORS`` setting (Todd Dembrey) * Password reset form no longer indicates whether the email is recognised, as per standard Django behaviour (Bertrand Bordage) * ``UserAttributeSimilarityValidator`` is now correctly enforced on user creation / editing forms (Tim Heap) + * Focal area removal not working in IE11 and MS Edge (Thibaud Colas) Upgrade considerations diff --git a/wagtail/images/static_src/wagtailimages/js/focal-point-chooser.js b/wagtail/images/static_src/wagtailimages/js/focal-point-chooser.js index 6e4fecbb8..a27220199 100644 --- a/wagtail/images/static_src/wagtailimages/js/focal-point-chooser.js +++ b/wagtail/images/static_src/wagtailimages/js/focal-point-chooser.js @@ -80,10 +80,10 @@ $(function() { $image.removeAttr('style'); $('.jcrop-holder').remove(); $('.current-focal-point-indicator').remove(); - fields.x.removeAttr('value'); - fields.y.removeAttr('value'); - fields.width.removeAttr('value'); - fields.height.removeAttr('value'); + fields.x.val(''); + fields.y.val(''); + fields.width.val(''); + fields.height.val(''); setupJcrop.apply(this, params); }); });