From 0e1da1a730d4f82e4d02d5de92e3148abff785f8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 28 Oct 2025 19:30:29 +0100 Subject: [PATCH] allow 'onclick' attribute in showMenuwithButton() --- views/bootstrap/class.Bootstrap.php | 7 ++++++- views/bootstrap4/class.Bootstrap4.php | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index e5960f451..19f8c43ae 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -655,7 +655,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);; '; foreach($button['menuitems'] as $menuitem) { $content .= ' -
  • '.$menuitem['label'].'
  • +
  • '; } $content .= ' diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 3dfe67b17..b38163fd7 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -660,7 +660,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);; '; foreach($button['menuitems'] as $menuitem) { $content .= ' - '.$menuitem['label'].' + '; } $content .= '