Merge pull request #1147 from ZmagoD/zd_SCI_2399

fixes ajax error in repositories [fixes SCI-2399]
This commit is contained in:
Zmago Devetak 2018-05-16 20:34:56 +02:00 committed by GitHub
commit 5184170a90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ module ApplicationHelper
end
def display_tooltip(message, len = Constants::NAME_TRUNCATION_LENGTH)
return '' unless message
if message.strip.length > len
sanitize_input("<div class='modal-tooltip'> \
#{truncate(message.strip, length: len)} \