Skip to content

Commit

Permalink
[BUG] Missing statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Dec 10, 2021
1 parent 6c9301a commit 1e866ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -6854,6 +6854,7 @@ ol.control.Dialog.prototype.setContent = function(options) {
ol.ext.element.setHTML(form.querySelector('.ol-content'), options.content || '');
}
// Title
form.querySelector('h2').innerText = options.title || '';
if (options.title) {
form.classList.add('ol-title');
} else {
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/control/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ ol_control_Dialog.prototype.setContent = function(options) {
ol_ext_element.setHTML(form.querySelector('.ol-content'), options.content || '');
}
// Title
form.querySelector('h2').innerText = options.title || '';
if (options.title) {
form.classList.add('ol-title');
} else {
Expand Down

0 comments on commit 1e866ca

Please sign in to comment.