mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 01:14:30 +08:00
Merge pull request #1147 from ZmagoD/zd_SCI_2399
fixes ajax error in repositories [fixes SCI-2399]
This commit is contained in:
commit
5184170a90
1 changed files with 1 additions and 0 deletions
|
@ -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)} \
|
||||
|
|
Loading…
Reference in a new issue