Browse Source

Fix alt+o shortcut not preventing default in Firefox

Thibaut Courouble 8 năm trước cách đây
mục cha
commit
9cce390ead
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      assets/javascripts/views/content/entry_page.coffee

+ 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