diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-12-08 11:20:48 +0100 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2020-12-09 13:24:02 +0100 |
commit | 97656c7f3af3a8a178355fec4a86d499b3e36e12 (patch) | |
tree | ddf16446af60201bc2bb0503bf1611c92295fb38 | |
parent | jsdialog: increase minimum width and height (diff) | |
download | online-97656c7f3af3a8a178355fec4a86d499b3e36e12.tar.gz online-97656c7f3af3a8a178355fec4a86d499b3e36e12.zip |
jsdialog: handle collapsed state of dialog
Change-Id: Ibb7209adc3333f50469f6f6da5636458bdd73a20
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r-- | loleaflet/css/jsdialogs.css | 13 | ||||
-rw-r--r-- | loleaflet/src/control/Control.JSDialog.js | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/loleaflet/css/jsdialogs.css b/loleaflet/css/jsdialogs.css index 8dc8bd226a..885f0fe447 100644 --- a/loleaflet/css/jsdialogs.css +++ b/loleaflet/css/jsdialogs.css @@ -277,8 +277,10 @@ td.jsdialog > [id^='table-box'] { /* Pivot Table dialog */ -.jsdialog-container .ui-expander + .ui-expander-content #source-button, -.jsdialog-container .ui-expander + .ui-expander-content #destination-button { +.jsdialog-container #source-button, +.jsdialog-container #destination-button, +.jsdialog-container #refbutton, +.jsdialog-container #assign { background: url('images/refinp1.svg') no-repeat center; height: 24px; width: 24px; @@ -286,6 +288,13 @@ td.jsdialog > [id^='table-box'] { vertical-align: middle; } +.jsdialog-container.collapsed #source-button, +.jsdialog-container.collapsed #destination-button, +.jsdialog-container.collapsed #refbutton, +.jsdialog-container.collapsed #assign { + background: url('images/refinp2.svg') no-repeat center; +} + /* Word count dialog */ #label9, #documentlabel-mobile { diff --git a/loleaflet/src/control/Control.JSDialog.js b/loleaflet/src/control/Control.JSDialog.js index 416fb13460..f390020039 100644 --- a/loleaflet/src/control/Control.JSDialog.js +++ b/loleaflet/src/control/Control.JSDialog.js @@ -39,6 +39,8 @@ L.Control.JSDialog = L.Control.extend({ var container = L.DomUtil.create('div', 'jsdialog-container ui-dialog ui-widget-content lokdialog_container', document.body); container.id = data.id; this.dialogs[data.id] = container; + if (data.collapsed && (data.collapsed === 'true' || data.collapsed === true)) + L.DomUtil.addClass(container, 'collapsed'); var titlebar = L.DomUtil.create('div', 'ui-dialog-titlebar ui-corner-all ui-widget-header ui-helper-clearfix', container); var title = L.DomUtil.create('span', 'ui-dialog-title', titlebar); |