]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Add attribute for auto focus 9632/head
authorGorrie <gorriecoe@gmail.com>
Thu, 12 Jan 2017 00:46:05 +0000 (13:46 +1300)
committerGorrie <gorriecoe@gmail.com>
Thu, 12 Jan 2017 00:46:05 +0000 (13:46 +1300)
commitea425920b8b7da13f2f999101f4db632abe9eb89
tree8f83597a645adb01caa91dfa4c9ea78aa5df02d1
parenta414012c2da1449db266fb92340b7bfd6962c55b
Add attribute for auto focus

Checks for the attribute [data-autofocus] within the toggled off canvas
and focuses on the first occurrence if available.  Otherwise reverts to
standard behaviour.
js/foundation.offcanvas.js