From 82dd65aca50b825882ed396694c63eaf6c372a5b Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Mon, 24 Oct 2022 09:59:20 +0300 Subject: [PATCH] refactoring --- public/akaunting-js/generalAction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index 11bcdf050..fa0ab1d43 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -360,8 +360,9 @@ if (navigator.userAgent.search("Firefox") >= 0) { //margue animation for truncated text function marqueeAnimation(truncate) { - if (truncate.closest('[data-disable-marquee]') !== null) { + if (truncate.closest('[disable-marquee]') !== null) { truncate.parentElement.classList.add('truncate'); + truncate.closest('[disable-marquee]').setAttribute('disable-marquee', 'data-disable-marquee'); return; } // offsetwidth = width of the text, clientWidth = width of parent text (div)