diff options
| author | Alec Perkins | 2012-09-17 10:01:44 -0400 | 
|---|---|---|
| committer | Alec Perkins | 2012-09-17 10:01:44 -0400 | 
| commit | 43c2a15f9d9423fdd3211684e18efeacd7534d3f (patch) | |
| tree | 2119c96660188bb946bd06871d11a06aa17d717a | |
| parent | 549ebdc1c67c20bdff39a2f4a59012dd010213a1 (diff) | |
| download | django-rest-framework-43c2a15f9d9423fdd3211684e18efeacd7534d3f.tar.bz2 | |
Prevent the touchstart event propagation on the dropdown menus in the navbar.
This allows the dropdowns to be used on a touch device.
| -rw-r--r-- | docs/template.html | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/template.html b/docs/template.html index 127978d2..4ac94f40 100644 --- a/docs/template.html +++ b/docs/template.html @@ -118,7 +118,7 @@        if (location.hash) shiftWindow();        window.addEventListener("hashchange", shiftWindow); -      $('.dropdown-menu').click(function(event) { +      $('.dropdown-menu').on('click touchstart', function(event) {          event.stopPropagation();        });      </script>  | 
