From 0a80e1cca9c0ce3616a4a161f42a8e1f11183b7a Mon Sep 17 00:00:00 2001 From: Koen Reefman Date: Thu, 14 Jun 2018 07:42:55 +0000 Subject: [PATCH] HSLE#40141 bijlage dropdown icm hamburger dropdown maken nu ook bij activeren elkaar 'hidden' zodat er maar 1 per x verschijnt svn path=/Website/trunk/; revision=38197 --- APPL/MLD/mld_show_note2.asp | 9 ++++++++- APPL/Shared/iface.inc | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/APPL/MLD/mld_show_note2.asp b/APPL/MLD/mld_show_note2.asp index 40c6f3a1d6..d11da2cf92 100644 --- a/APPL/MLD/mld_show_note2.asp +++ b/APPL/MLD/mld_show_note2.asp @@ -170,6 +170,13 @@ if (mld_key > 0) $('#notifyFE').prop('checked', false); } + function toggleDropdown() + { + $('li.byHamburger').toggleClass('hidden', true); + $('li.byDropdown').toggleClass('hidden'); + FcltMgr.resized(); + } + var note_key = <%=note_key%>; $(function () { @@ -292,7 +299,7 @@ if (mld_key > 0) if (kenmerk_key_arr.length == 1) buttons.push({ icon: "attach.png", title: L("lcl_appendixes"), action: "Upload()" }); else if (kenmerk_key_arr.length > 1) - buttons.push({ icon: "fa-chevron-down", title: L("lcl_appendixes"), action: "$('li.byDropdown').toggleClass('hidden');FcltMgr.resized();" }); + buttons.push({ icon: "fa-chevron-down", title: L("lcl_appendixes"), action: "toggleDropdown()" }); BLOCK_START("mldHistorie", (tracking?L("lcl_mld_behandeling"):L("lcl_mld_frame_notes")), { buttons: buttons }); // what info to show? determined by mld_merge_notes_and_tracking diff --git a/APPL/Shared/iface.inc b/APPL/Shared/iface.inc index b719cb19fa..3582ec86b6 100644 --- a/APPL/Shared/iface.inc +++ b/APPL/Shared/iface.inc @@ -93,7 +93,7 @@ function CreateButtons(buttons, params) if (hambuttons.length) { var btn = { icon: "fa-bars", tooltip: L("lcl_more"), id: "printhamburger", - action: "$('li.byHamburger').toggleClass('hidden');FcltMgr.resized();" } + action: "$('li.byDropdown').toggleClass('hidden', true);$('li.byHamburger').toggleClass('hidden');FcltMgr.resized();" } CreateButton(null, btn.action, btn, params ); // z-index floating header = 10, so z-index hamburger = 11