View Issue Details

IDProjectCategoryView StatusLast Update
0027242mantisbtbugtrackerpublic2020-09-18 19:36
Reporterdregad Assigned Todregad  
PrioritylowSeveritytweakReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.25.0Fixed in Version2.25.0 
Summary0027242: Allow printing of standard confirmation alerts without buttons
Description

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.

Activities

Related Changesets

MantisBT: master 3c840478

2020-09-05 06:55:11

dregad

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
0027242
mod - core/html_api.php Diff File

Issue History

Date Modified Username Field Change
2020-09-05 07:04 dregad New Issue
2020-09-05 07:04 dregad Status new => assigned
2020-09-05 07:04 dregad Assigned To => dregad
2020-09-05 07:07 dregad Note Added: 0064366
2020-09-18 19:36 dregad Changeset attached => MantisBT master 3c840478
2020-09-18 19:36 dregad Status assigned => resolved
2020-09-18 19:36 dregad Resolution open => fixed
2020-09-18 19:36 dregad Fixed in Version => 2.25.0