[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 2 12:13:42 UTC 2019
loleaflet/src/control/Control.JSDialogBuilder.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit f7d83ddfb1896c074b9d59c7002eefe9e78a9ab5
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Oct 2 13:55:21 2019 +0200
Commit: Szymon Kłos <szymon.klos at 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.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at 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) {
More information about the Libreoffice-commits
mailing list