Changed className to classList

This commit is contained in:
Ulysse ARNAUD 2022-10-10 09:51:46 +02:00
parent 2bd4d44190
commit 7d559281c9

View file

@ -252,7 +252,7 @@ var ModalView = Backbone.View.extend({
show: function() { show: function() {
Array.from(document.body.children).forEach(function(child) { Array.from(document.body.children).forEach(function(child) {
if (child.className === 'modalView') return; if (child.classList.contains('modalView')) return;
child.setAttribute('inert', ''); child.setAttribute('inert', '');
}); });
@ -276,7 +276,7 @@ var ModalView = Backbone.View.extend({
Array.from(document.body.children).forEach(function(child) { Array.from(document.body.children).forEach(function(child) {
if (child.className === 'modalView') return; if (child.classList.contains('modalView')) return;
child.removeAttribute('inert'); child.removeAttribute('inert');
}); });
}, },