Przeglądaj źródła

Fix alt+o shortcut not preventing default in Firefox

Thibaut Courouble 8 lat temu
rodzic
commit
9cce390ead

+ 1 - 1
assets/javascripts/views/content/entry_page.coffee

@@ -154,5 +154,5 @@ class app.views.EntryPage extends app.View
 
   onAltO: =>
     return unless link = @find('._attribution:last-child ._attribution-link')
-    $.popup(link.href + location.hash)
+    @delay -> $.popup(link.href + location.hash)
     return