mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-04 21:44:44 +00:00
Fixes the javascript error that was breaking the userbar on touch devices.
This commit is contained in:
parent
e6c0d4f33e
commit
f6b47235a3
3 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ Changelog
|
|||
* Fix: Migrations for wagtailcore and project template are now reversible (Benjamin Bach)
|
||||
* Fix: The default image format label text ('Full width', 'Left-aligned', 'Right-aligned') is now localised (Mikalai Radchuk)
|
||||
* Fix: Text on the front-end 'password required' form is now marked for translation (Janneke Janssen)
|
||||
* Fix: Fixed toggle behaviour of userbar on mobile (Robert Rollins)
|
||||
|
||||
|
||||
1.6.1 (26.08.2016)
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ Bug fixes
|
|||
* Migrations for wagtailcore and project template are now reversible (Benjamin Bach)
|
||||
* The default image format label text ('Full width', 'Left-aligned', 'Right-aligned') is now localised (Mikalai Radchuk)
|
||||
* Text on the front-end 'password required' form is now marked for translation (Janneke Janssen)
|
||||
* Fixed toggle behaviour of userbar on mobile (Robert Rollins)
|
||||
|
||||
|
||||
Upgrade considerations
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ document.addEventListener('DOMContentLoaded', function userBar(e) {
|
|||
// in accordance with: https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-how/
|
||||
trigger.addEventListener('touchend', function preventSimulatedClick(e) {
|
||||
e.preventDefault();
|
||||
toggleUserbar();
|
||||
toggleUserbar(e);
|
||||
});
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue