Fixed onAnnotationClick handler message.

This commit is contained in:
Nick Winter 2014-10-10 13:36:13 -07:00
parent 7f9fdc7253
commit 629827f133

View file

@ -656,6 +656,8 @@ module.exports = class SpellView extends CocoView
session.addGutterDecoration index, 'comment-line'
onAnnotationClick: ->
# @ is the gutter element
msg = "Edit line #{$(@).index() + 1} to fix it."
alertBox = $("<div class='alert alert-info fade in'>#{msg}</div>")
offset = $(@).offset()
offset.left -= 162 # default width of the Bootstrap alert here