View Issue Details

IDProjectCategoryView StatusLast Update
0027242mantisbtbugtrackerpublic2021-03-07 18:29
Reporterdregad Assigned Todregad  
Status closedResolutionfixed 
Target Version2.25.0Fixed in Version2.25.0 
Summary0027242: Allow printing of standard confirmation alerts without buttons

HTML API provides functions to print alerts (success / warning / failure), plus a generic one, html_operation_confirmation() allowing more flexibility in the alert's format by providing a list of action buttons to display.

However, there is no way to print a simple alert without buttons.

Additional Information

I needed this for a plugin.

TagsNo tags attached.


Related Changesets

MantisBT: master 3c840478

2020-09-05 06:55:11


Details Diff
Allow confirmation messages without buttons

html_operation_confirmation() $p_buttons param can now be null or an
empty array, in which case the function will only print the alert
message text, without action buttons.

Fixes 0027242
Affected Issues
mod - core/html_api.php Diff File