Make title work with quotes,

update german translation
This commit is contained in:
Peter Pfläging 2019-07-11 12:03:21 +02:00
parent 7be93fc5e1
commit c2c8a629c1
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# Translation by Peter Pfläging <peter@pflaeging.net>
de:
ide_txt_validation_btn : 'Änderung bestätitgen'
ide_txt_error_positive_number : 'Hier muss eine positive Zahl stehen'

View File

@ -155,8 +155,10 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener
end
# Title
# Make quotings in subject! (PP)
clonesubject = issue.subject.gsub('"','&quot;')
o << "<span class='dynamicEdit' id='TitleInput'>"
o << " <input size=\"50\" value=\"#{issue.subject}\" type=\"text\">"
o << " <input size=\"50\" value=\"#{clonesubject}\" type=\"text\">"
o << " <a href='#' class='btn btn-primary validate' aria-label='" + l(:ide_txt_validation_btn) + "'><i class='fa fa-check fa-fw' aria-hidden='true'></i></a>"
o << " <a href='#' class='btn btn-primary close' aria-label='" + l(:ide_txt_cancel_btn) + "'><i class='fa fa-times fa-fw' aria-hidden='true'></i></a>"
o << "</span>"