Fix an 'undefined' variable error in the drive

This commit is contained in:
yflory 2017-05-03 17:17:42 +02:00
parent c9d89debba
commit 80115d0071

View file

@ -1871,6 +1871,7 @@ define([
var $truncated = $('<span>', {'class': 'truncated'}).text('...');
$content.find('.element').each(function (idx, el) {
var $name = $(el).find('.name');
if ($name.length === 0) { return; }
if ($name[0].scrollHeight > $name[0].clientHeight) {
var $tr = $truncated.clone();
$tr.attr('title', $name.attr('title'));