DNNCommunity / DNN.Repository

DNN.Repository is a rich module used for managing and displaying rich collections of images, files, llinks, etc. on your DNN site. Includes user rating, comments, templating and skinning.
MIT License
8 stars 14 forks source link

4.1.0 issues javascript console error #50

Closed TopCat6 closed 9 months ago

TopCat6 commented 3 years ago

Describe the bug

Browser gives console error message that attachEvent is not a function in line 29 of pngfix.js window.attachEvent("onload", correctPNG);

Error message goes away when you change line 29 to: window.addEventListener("onload", correctPNG, false);

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Place Repository module on page
  2. Press F12
  3. Click Console tab
  4. See error

Expected behavior

A clear and concise description of what you expected to happen. No error should be thrown in browser