diff --git a/templates/MetaTemplates/update_all.php b/templates/MetaTemplates/update_all.php index 95d04af..d42816c 100644 --- a/templates/MetaTemplates/update_all.php +++ b/templates/MetaTemplates/update_all.php @@ -132,8 +132,10 @@ echo $this->Bootstrap->modal([ 'bodyHtml' => $bodyHtml, 'size' => $modalSize, 'type' => $modalType, - 'confirmText' => __('Update meta-templates'), - 'confirmFunction' => 'updateMetaTemplate', + 'confirmButton' => [ + 'text' => __('Update meta-templates'), + 'onclick' => 'updateMetaTemplate', + ], ]); ?> diff --git a/templates/genericTemplates/confirm.php b/templates/genericTemplates/confirm.php index 9910adf..ab68c53 100644 --- a/templates/genericTemplates/confirm.php +++ b/templates/genericTemplates/confirm.php @@ -36,4 +36,4 @@ $modalOptions = array_merge($defaultOptions, $modalOptions ?? []); $modalOptions['bodyHtml'] = $bodyHTML; echo $this->Bootstrap->modal($modalOptions); -?> +