diff --git a/lib/zin/wg/floattoolbar/v1.php b/lib/zin/wg/floattoolbar/v1.php index a698647307..bb1e89ed44 100644 --- a/lib/zin/wg/floattoolbar/v1.php +++ b/lib/zin/wg/floattoolbar/v1.php @@ -38,6 +38,9 @@ class floatToolbar extends wg $className = 'ghost'; if(!empty($item['className'])) $className .= ' ' . $item['className']; + + /* Close other modals on open modal from float toolbar. */ + if(isset($item['data-toggle']) && $item['data-toggle'] === 'modal' && (!empty($item['url']) || !empty($item['data-url'])) && !isset($item['data-close-others'])) $item['data-close-others'] = true; $btns[] = btn(set($item), setClass($className)); } return $btns;