Tooltip fix on status icon

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-02-22 15:04:23 +01:00
parent 1f3eef9460
commit 323dd31056
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
2 changed files with 7 additions and 2 deletions

View File

@ -1246,7 +1246,12 @@ MountConfigListView.prototype = _.extend({
default: default:
$statusSpan.attr('class', 'error icon-error-white'); $statusSpan.attr('class', 'error icon-error-white');
} }
$statusSpan.attr('data-original-title', (typeof message === 'string') ? message : ''); if (typeof message === 'string') {
$statusSpan.attr('title', message);
$statusSpan.tooltip();
} else {
$statusSpan.tooltip('destroy');
}
}, },
/** /**

View File

@ -110,7 +110,7 @@
<?php endif; ?> <?php endif; ?>
> >
<td class="status"> <td class="status">
<span title="<?php p($l->t('Click to recheck the configuration')); ?>"></span> <span data-placement="right" title="<?php p($l->t('Click to recheck the configuration')); ?>"></span>
</td> </td>
<td class="mountPoint"><input type="text" name="mountPoint" value="" <td class="mountPoint"><input type="text" name="mountPoint" value=""
placeholder="<?php p($l->t('Folder name')); ?>"> placeholder="<?php p($l->t('Folder name')); ?>">