MDL-28195 confirm_action should allow the button labels to be customised

This commit is contained in:
Tim Hunt
2011-07-06 14:47:30 +01:00
parent 81f8e0f8a0
commit 8f78cd5abc
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -481,7 +481,7 @@ class single_button implements renderable {
* @return void
*/
public function add_confirm_action($confirmmessage) {
$this->add_action(new component_action('click', 'M.util.show_confirm_dialog', array('message' => $confirmmessage)));
$this->add_action(new confirm_action($confirmmessage));
}
/**