mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 07:34:41 +08:00
fixes ajax error in repositories [fixes SCI-2399]
This commit is contained in:
parent
8a92f1a499
commit
87369ae16b
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def display_tooltip(message, len = Constants::NAME_TRUNCATION_LENGTH)
|
def display_tooltip(message, len = Constants::NAME_TRUNCATION_LENGTH)
|
||||||
|
return '' unless message
|
||||||
if message.strip.length > len
|
if message.strip.length > len
|
||||||
sanitize_input("<div class='modal-tooltip'> \
|
sanitize_input("<div class='modal-tooltip'> \
|
||||||
#{truncate(message.strip, length: len)} \
|
#{truncate(message.strip, length: len)} \
|
||||||
|
|
Loading…
Add table
Reference in a new issue