truncate html created only truncated text
This commit is contained in:
4
public/akaunting-js/generalAction.js
vendored
4
public/akaunting-js/generalAction.js
vendored
@ -361,10 +361,6 @@ if (navigator.userAgent.search("Firefox") >= 0) {
|
||||
//margue animation for truncated text
|
||||
document.querySelectorAll('[data-truncate]').forEach((truncate) => {
|
||||
let truncateText = truncate.innerText.split(" ").join("");
|
||||
|
||||
if (truncateText.length > 30) {
|
||||
truncate.classList.add('truncate');
|
||||
}
|
||||
|
||||
truncate.addEventListener('mouseover', function () {
|
||||
if (truncateText.length > 30) {
|
||||
|
Reference in New Issue
Block a user