From bbb9d5c0d6bb4a605c0f65d64fc298fedac560a6 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 25 May 2021 15:15:27 +0200 Subject: [PATCH] set class="btn" in link to open modal box, otherwise the button disappears --- views/bootstrap/class.Bootstrap.php | 2 ++ views/bootstrap4/class.Bootstrap4.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index b93a16179..5c6cc6875 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1280,6 +1280,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $attrs[] = array('role', 'button'); if(isset($config['class'])) $attrs[] = array('class', $config['class']); + else + $attrs[] = array('class', 'btn'); return $attrs; } /* }}} */ diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index b2b6bb29e..2c286409c 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -1274,6 +1274,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $attrs[] = array('role', 'button'); if(isset($config['class'])) $attrs[] = array('class', $config['class']); + else + $attrs[] = array('class', 'btn'); return $attrs; } /* }}} */