comparison app/assets/javascripts/application.coffee @ 405:26c1b0b8edbe

Don't add hash when clicking preview.
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 04:36:18 +0900
parents 3d434e15ddb1
children c4c8214fb0b2
comparison
equal deleted inserted replaced
404:3d434e15ddb1 405:26c1b0b8edbe
51 $mdBox.html markdownfy(pasteText()) 51 $mdBox.html markdownfy(pasteText())
52 $mdBox.find("a").attr("rel", "nofollow") 52 $mdBox.find("a").attr("rel", "nofollow")
53 $mdBox.data "processed", true 53 $mdBox.data "processed", true
54 54
55 55
56 $(document).on "click", ".js-paste-preview-md", -> 56 $(document).on "click", ".js-paste-preview-md", (e) ->
57 e.preventDefault()
57 return if pasteText() == "" 58 return if pasteText() == ""
58 $(".js-paste-preview-md-box").html markdownfy(pasteText()) 59 $(".js-paste-preview-md-box").html markdownfy(pasteText())
59 $(".js-paste-preview-md-modal").modal "show" 60 $(".js-paste-preview-md-modal").modal "show"
60 61
61 62