From 1353d99501b379d8a5cd2cee293566d80ca032c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20L=C3=BCtzenkirchen?= Date: Mon, 23 Feb 2015 10:37:22 +0100 Subject: [PATCH] js: overlays vs advanced selection list --- .../Table/templates/default/tpl.table2.html | 29 ++++++++++--------- .../js/AdvancedSelectionList.js | 7 +++++ Services/UIComponent/Overlay/js/ilOverlay.js | 3 ++ 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/Services/Table/templates/default/tpl.table2.html b/Services/Table/templates/default/tpl.table2.html index b56e1e9872be..6d754bb11d0e 100755 --- a/Services/Table/templates/default/tpl.table2.html +++ b/Services/Table/templates/default/tpl.table2.html @@ -80,22 +80,25 @@ {COLUMN_SELECTOR} {ROW_SELECTOR} {TEMPLATE_SELECTOR} {EXPORT_SELECTOR} -
- {TXT_TEMPLATE_CREATE}:
- - +
+
+ {TXT_TEMPLATE_CREATE}:
+ + +
+ -
- {TXT_TEMPLATE_DELETE}:
- - +
+
+ {TXT_TEMPLATE_DELETE}:
+ + +
- - - +
diff --git a/Services/UIComponent/AdvancedSelectionList/js/AdvancedSelectionList.js b/Services/UIComponent/AdvancedSelectionList/js/AdvancedSelectionList.js index 7988fe8b1ba4..b220f489bef3 100755 --- a/Services/UIComponent/AdvancedSelectionList/js/AdvancedSelectionList.js +++ b/Services/UIComponent/AdvancedSelectionList/js/AdvancedSelectionList.js @@ -21,6 +21,13 @@ il.AdvancedSelectionList = toggle_el: cfg.toggle_el, toggle_class_on: cfg.toggle_class_on, asynch: cfg.asynch, asynch_url: cfg.asynch_url, auto_hide: cfg.auto_hide}); */ + + // hide all overlays on trigger + $("#ilAdvSelListAnchorText_" + id).click(function(e) { + if (typeof il.Overlay != "undefined") { + il.Overlay.hideAllOverlays(e, true); + } + }); }, itemOn: function (obj) diff --git a/Services/UIComponent/Overlay/js/ilOverlay.js b/Services/UIComponent/Overlay/js/ilOverlay.js index daa9ede2ce5a..22e559c75d98 100644 --- a/Services/UIComponent/Overlay/js/ilOverlay.js +++ b/Services/UIComponent/Overlay/js/ilOverlay.js @@ -243,6 +243,9 @@ il.Overlay = { // hide all overlays hideAllOverlays: function (e, force, omit) { var k, isIn, tgt, el, el_reg; + + // hide all dropdowns, too! + $('[data-toggle="dropdown"]').parent().removeClass('open'); for (k in il.Overlay.overlays) { isIn = false;