mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Watch the title element size for change
This commit is contained in:
parent
aa09f3a86f
commit
58e96cd4fe
@ -2,6 +2,7 @@ const truncate = () => {
|
||||
$('.acard .uk-card-title').each((i, e) => {
|
||||
$(e).dotdotdot({
|
||||
truncate: 'letter',
|
||||
watch: true,
|
||||
callback: (truncated) => {
|
||||
if (truncated) {
|
||||
$(e).attr('uk-tooltip', $(e).attr('data-title'));
|
||||
@ -14,6 +15,4 @@ const truncate = () => {
|
||||
});
|
||||
};
|
||||
|
||||
$(() => {
|
||||
truncate();
|
||||
});
|
||||
truncate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user