Add line number to modal title

This commit is contained in:
Maximilian Grundke
2017-09-06 13:08:39 +02:00
parent b0bff8c573
commit b3cf7affa6
3 changed files with 3 additions and 0 deletions

View File

@@ -314,6 +314,7 @@ also, all settings from the rails model needed for the editor configuration in t
var row = e.getDocumentPosition().row;
e.stop();
$('.modal-title').text('<%= t('request_for_comments.modal_title') %>'.replace('${line}', row + 1));
var commentModal = $('#comment-modal');