mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Fixed #10: Invisible header after closing search bar with ESC key
This commit is contained in:
parent
573b74881d
commit
3e508f45f2
@ -1,3 +1,9 @@
|
||||
mkdocs-material-0.x.x (2016-xx-xx)
|
||||
|
||||
In progress
|
||||
|
||||
* Fixed #10: Invisible header after closing search bar with ESC key
|
||||
|
||||
mkdocs-material-0.2.0 (2016-02-24)
|
||||
|
||||
* Fixed #6: Include multiple color palettes via mkdocs.yml
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -138,7 +138,7 @@
|
||||
var base_url = '{{ base_url }}';
|
||||
var repo_id = '{{ repo_id }}';
|
||||
</script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application-a10a824a49.js"></script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application-0c6e4a273e.js"></script>
|
||||
{% for path in extra_javascript %}
|
||||
<script src="{{ path }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
|
||||
"assets/javascripts/application.js": "assets/javascripts/application-a10a824a49.js",
|
||||
"assets/javascripts/application.js": "assets/javascripts/application-0c6e4a273e.js",
|
||||
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js",
|
||||
"assets/stylesheets/application.css": "assets/stylesheets/application-b64b728552.css",
|
||||
"assets/stylesheets/palettes.css": "assets/stylesheets/palettes-05ab2406df.css"
|
||||
|
@ -373,6 +373,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
window.addEventListener('keyup', function(e) {
|
||||
var code = e.keyCode || e.which;
|
||||
if (code == 27) {
|
||||
query.blur();
|
||||
|
||||
/* Exit locked state */
|
||||
document.body.classList.remove('toggle-search');
|
||||
document.body.classList.remove('locked');
|
||||
toggle.checked = false;
|
||||
|
Loading…
Reference in New Issue
Block a user