kopia lustrzana https://github.com/wagtail/wagtail
Use cross-browser document.activeElement instead of (non-IE) event.target.activeElement
Conflicts: CONTRIBUTORS.rstpull/2612/head
rodzic
0eaac1882c
commit
0899c48117
|
@ -55,6 +55,7 @@ Changelog
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* Fix: Paste / drag operations done entirely with the mouse are now correctly picked up as edits within the rich text editor (Matt Fozard)
|
* Fix: Paste / drag operations done entirely with the mouse are now correctly picked up as edits within the rich text editor (Matt Fozard)
|
||||||
|
* Fix: Logic for cancelling the "unsaved changes" check on form submission has been fixed to work cross-browser (Stephen Rice)
|
||||||
|
|
||||||
|
|
||||||
1.4.4 (10.05.2016)
|
1.4.4 (10.05.2016)
|
||||||
|
|
|
@ -137,6 +137,7 @@ Contributors
|
||||||
* Juha Yrjölä
|
* Juha Yrjölä
|
||||||
* Bojan Mihelac
|
* Bojan Mihelac
|
||||||
* Robert Moggach
|
* Robert Moggach
|
||||||
|
* Stephen Rice
|
||||||
|
|
||||||
Translators
|
Translators
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -14,3 +14,4 @@ Bug fixes
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
* Paste / drag operations done entirely with the mouse are now correctly picked up as edits within the rich text editor (Matt Fozard)
|
* Paste / drag operations done entirely with the mouse are now correctly picked up as edits within the rich text editor (Matt Fozard)
|
||||||
|
* Logic for cancelling the "unsaved changes" check on form submission has been fixed to work cross-browser (Stephen Rice)
|
||||||
|
|
|
@ -67,7 +67,7 @@ function enableDirtyFormCheck(formSelector, options) {
|
||||||
window.addEventListener('beforeunload', function(event) {
|
window.addEventListener('beforeunload', function(event) {
|
||||||
// Ignore if the user clicked on an ignored element
|
// Ignore if the user clicked on an ignored element
|
||||||
var triggeredByIgnoredButton = false;
|
var triggeredByIgnoredButton = false;
|
||||||
var $trigger = $(event.target.activeElement);
|
var $trigger = $(event.explicitOriginalTarget || document.activeElement);
|
||||||
|
|
||||||
$ignoredButtons.each(function() {
|
$ignoredButtons.each(function() {
|
||||||
if ($(this).is($trigger)) {
|
if ($(this).is($trigger)) {
|
||||||
|
|
Ładowanie…
Reference in New Issue