[Libreoffice-commits] online.git: bundled/include loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue May 14 20:17:37 UTC 2019
bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h | 2 ++
loleaflet/src/control/Control.LokDialog.js | 4 ++++
2 files changed, 6 insertions(+)
New commits:
commit 07f924baf6e352fe2e4088def7e631d7cb127680
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Apr 29 17:51:41 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue May 14 22:17:19 2019 +0200
loleaflet: Allow to hide dialog
Change-Id: Ieb6ba7e51ad91916e550a529cd94151d062b33d3
Reviewed-on: https://gerrit.libreoffice.org/71549
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h b/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h
index 33d235af8..af4952566 100644
--- a/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -575,6 +575,8 @@ typedef enum
* - "cursor_visible" - cursor visible status is changed. Status is available
* in "visible" field
* - "close" - window is closed
+ * - "show" - show the window
+ * - "hide" - hide the window
*/
LOK_CALLBACK_WINDOW = 36,
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index bc30c2e02..072ae72b5 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -270,6 +270,10 @@ L.Control.LokDialog = L.Control.extend({
this._onDialogChildClose(parent);
else
this._onDialogClose(e.id, false);
+ } else if (e.action === 'hide') {
+ $('#' + strId).parent().css({display: 'none'});
+ } else if (e.action === 'show') {
+ $('#' + strId).parent().css({display: 'block'});
}
},
More information about the Libreoffice-commits
mailing list