loleaflet/src/control/Control.JSDialogBuilder.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit f7d83ddfb1896c074b9d59c7002eefe9e78a9ab5 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Wed Oct 2 13:55:21 2019 +0200 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Wed Oct 2 14:13:25 2019 +0200 jsdialogs: wizard guard in the builder Change-Id: I6925aab24602788e52fe2e386869b2c02101677d Reviewed-on: https://gerrit.libreoffice.org/80030 Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Tested-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index 3d19a5430..0fec449a4 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -145,7 +145,11 @@ L.Control.JSDialogBuilder = L.Control.extend({ builder._currentDepth--; $(contentDiv).hide(); - $(sectionTitle).click(function() { builder.wizard.goLevelDown(contentDiv); }); + if (builder.wizard) { + $(sectionTitle).click(function() { builder.wizard.goLevelDown(contentDiv); }); + } else { + console.debug('Builder used outside of mobile wizard: please implement the click handler'); + } }, _frameHandler: function(parentContainer, data, builder) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits