jsdialog: build frame also without title

Change-Id: Id5f94eb90756419305ab5d593791663ecb5eb41b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93026
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
Szymon Kłos 2020-02-25 10:50:43 +01:00
parent 1cf7c3a46c
commit 70084f48dd

View file

@ -548,10 +548,13 @@ L.Control.JSDialogBuilder = L.Control.extend({
},
_frameHandler: function(parentContainer, data, builder) {
data.text = builder._cleanText(data.children[0].text);
var contentNode = data.children[1];
builder._explorableEntry(parentContainer, data, contentNode, builder);
if (data.children.length > 1) {
data.text = builder._cleanText(data.children[0].text);
var contentNode = data.children[1];
builder._explorableEntry(parentContainer, data, contentNode, builder);
} else {
return true;
}
return false;
},
@ -1823,6 +1826,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
build: function(parent, data) {
this._amendJSDialogData(data);
for (var childIndex in data) {
if (!data[childIndex])
continue;
var childData = data[childIndex];
if (!childData)
continue;