Добавил функцию по удалению всех дочерних элементов.

This commit is contained in:
Igor I
2024-02-07 08:29:24 +06:00
parent e2573c364c
commit 6440cfc419
2 changed files with 10 additions and 3 deletions

View File

@ -3,6 +3,13 @@
//var g_translations = {'':''};
function removeChild(parent){
if(parent==null) return;
while (parent.firstChild) {
parent.removeChild(parent.firstChild);
}
}
//Массив g_translations подгружается отдельно
function trt(key)
{