Перейти к содержанию

MediaWiki:Common.js: различия между версиями

нет описания правки
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
if (document.readyState !== 'loading') {
// Get the select element and the forms
    formCreateSelect();
} else {
    document.addEventListener('DOMContentLoaded', function () {
        formCreateSelect();
    });
}
function formCreateSelect() {// Get the select element and the forms
var select = document.getElementById('select');
var select = document.getElementById('select');
var forms = document.querySelectorAll('.createbox');
var forms = document.querySelectorAll('.createbox');
Строка 45: Строка 38:
   }
   }
});
});
}