Fixes the javascript error that was breaking the userbar on touch devices.

This commit is contained in:
Robert Rollins 2016-08-23 14:25:30 -07:00 committed by Matt Westcott
parent e6c0d4f33e
commit f6b47235a3
3 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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

View file

@ -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 {