Explorar el Código

TREEJS Fix ids function

Piotr Labudda hace 10 años
padre
commit
0389cb4059
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      SE/superedit-TREEJS.php

+ 1 - 1
SE/superedit-TREEJS.php

@@ -594,7 +594,7 @@ function <?php echo $htmlTreeId; ?>_setIds(btnNode, id, idsList) {
 	var idsList = idsList || [];
 
 	var ddNode = btnNode.parentNode.nextSibling;
-	if (!ddNode) {
+	if (!ddNode || ddNode.nodeType != 1) {
 		ddNode = document.createElement('dd');
 		btnNode.parentNode.parentNode.insertBefore(ddNode, btnNode.parentNode.nextSibling);
 	}