Mercurial > zeropaste
diff app/assets/javascripts/application.coffee @ 416:c4c8214fb0b2
Simplify dom check
author | nanaya <me@myconan.net> |
---|---|
date | Mon, 14 Sep 2015 14:48:36 +0900 |
parents | 26c1b0b8edbe |
children | 080dd141898c |
line wrap: on
line diff
--- a/app/assets/javascripts/application.coffee Mon Sep 14 14:23:23 2015 +0900 +++ b/app/assets/javascripts/application.coffee Mon Sep 14 14:48:36 2015 +0900 @@ -61,7 +61,7 @@ $(document).on "ready", -> - return if $(".js-showing-paste").length < 1 + return unless $(".js-showing-paste").length format = window.location.hash.slice(1) $(".js-show-tab-#{format}").click()