comparison 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
comparison
equal deleted inserted replaced
415:753395ccc4d2 416:c4c8214fb0b2
59 $(".js-paste-preview-md-box").html markdownfy(pasteText()) 59 $(".js-paste-preview-md-box").html markdownfy(pasteText())
60 $(".js-paste-preview-md-modal").modal "show" 60 $(".js-paste-preview-md-modal").modal "show"
61 61
62 62
63 $(document).on "ready", -> 63 $(document).on "ready", ->
64 return if $(".js-showing-paste").length < 1 64 return unless $(".js-showing-paste").length
65 65
66 format = window.location.hash.slice(1) 66 format = window.location.hash.slice(1)
67 $(".js-show-tab-#{format}").click() 67 $(".js-show-tab-#{format}").click()