diff --git a/akvo/rsr/static/scripts-src/myrsr-admin.js b/akvo/rsr/static/scripts-src/myrsr-admin.js index 4611ff718f..2ededa0c35 100644 --- a/akvo/rsr/static/scripts-src/myrsr-admin.js +++ b/akvo/rsr/static/scripts-src/myrsr-admin.js @@ -2060,7 +2060,7 @@ function setUnsavedChangesMessage() { /* General Helper Functions */ function elHasClass(el, className) { - if (el.classList) { + if (el.classList && el.classList.forEach) { var result = false; el.classList.forEach( function(entry) { if (entry.toString() === className.toString()) { diff --git a/akvo/rsr/static/scripts-src/myrsr-admin.jsx b/akvo/rsr/static/scripts-src/myrsr-admin.jsx index 3f6e71307e..568b376d07 100644 --- a/akvo/rsr/static/scripts-src/myrsr-admin.jsx +++ b/akvo/rsr/static/scripts-src/myrsr-admin.jsx @@ -2060,7 +2060,7 @@ function setUnsavedChangesMessage() { /* General Helper Functions */ function elHasClass(el, className) { - if (el.classList) { + if (el.classList && el.classList.forEach) { var result = false; el.classList.forEach( function(entry) { if (entry.toString() === className.toString()) {