offsetWidth news area Forma 2.1

Please report here problems and bugs
Post Reply
drewlander
Newbie
Posts: 13
Joined: Wed Feb 24, 2016 4:38 am
Version: forma.lms 1.4.1

offsetWidth news area Forma 2.1

Post by drewlander » Sun Mar 10, 2019 8:37 pm

javascript error on the bootstrap carousel for the user news area ( under the profile slide-in ).

VM3692 bootstrap-3.3.6.min.js:6 Uncaught TypeError: Cannot read property 'offsetWidth' of undefined

This happens when there is no news. simple fix is to add the news. A better fix might be to check if the array is empty before trying to set the news ???

thx
-d

Post Reply