Explorar o código

[wodml] col cback needs to call childElement

cgars %!s(int64=7) %!d(string=hai) anos
pai
achega
d5bcb5ece7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/js/gogs.js

+ 1 - 1
public/js/gogs.js

@@ -1655,7 +1655,7 @@ function OdmlEditor() {
 				collapsible: true,
 				collapsible: true,
 				collapsed: true,
 				collapsed: true,
 				collapsoid: function (jsElement) {
 				collapsoid: function (jsElement) {
-					if (jsElement.hasChildNodes("name")) {
+					if (jsElement.hasChildElement("name")) {
 						return jsElement.getChildElements("name")[0].getText();
 						return jsElement.getChildElements("name")[0].getText();
 					}
 					}
 					else {
 					else {