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; var row = e.getDocumentPosition().row;
e.stop(); e.stop();
$('.modal-title').text('<%= t('request_for_comments.modal_title') %>'.replace('${line}', row + 1));
var commentModal = $('#comment-modal'); var commentModal = $('#comment-modal');

View File

@ -473,6 +473,7 @@ de:
send_thank_you_note: "Senden" send_thank_you_note: "Senden"
cancel_thank_you_note: "Nichts senden" cancel_thank_you_note: "Nichts senden"
comment_edited: "bearbeitet" comment_edited: "bearbeitet"
modal_title: "Einen Kommentar in Zeile ${line} hinzufügen"
sessions: sessions:
create: create:
failure: Fehlerhafte E-Mail oder Passwort. failure: Fehlerhafte E-Mail oder Passwort.

View File

@ -494,6 +494,7 @@ en:
send_thank_you_note: "Send" send_thank_you_note: "Send"
cancel_thank_you_note: "Don't send" cancel_thank_you_note: "Don't send"
comment_edited: "edited" comment_edited: "edited"
modal_title: "Add a comment to line ${line}"
sessions: sessions:
create: create:
failure: Invalid email or password. failure: Invalid email or password.