Correctly uses a variable with the text

This commit is contained in:
Phil Hughes 2016-03-11 10:03:35 +00:00
parent f95f242cfa
commit 6690d8e25b

View file

@ -610,7 +610,7 @@ class @Notes
reopenbtn.text(reopentext) reopenbtn.text(reopentext)
if closebtn.text() isnt closetext if closebtn.text() isnt closetext
closebtn.text(closebtn.data('original-text')) closebtn.text(closetext)
if reopenbtn.is(':not(.btn-comment-and-reopen)') if reopenbtn.is(':not(.btn-comment-and-reopen)')
reopenbtn.removeClass('btn-comment-and-reopen') reopenbtn.removeClass('btn-comment-and-reopen')