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:
parent
1cf7c3a46c
commit
70084f48dd
1 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue