Use confirmation (not notice) message for some successful actions

pull/6085/head
Aleksander Machniak 7 years ago
parent 608e23c9c0
commit 78aa0efa15

@ -122,7 +122,7 @@ foreach ($cids as $source => $cid) {
if (!$success)
$OUTPUT->show_message($errormsg, 'error');
else
$OUTPUT->show_message('copysuccess', 'notice', array('nr' => $success));
$OUTPUT->show_message('copysuccess', 'confirmation', array('nr' => $success));
// send response
$OUTPUT->send();

@ -51,7 +51,7 @@ if ($RCMAIL->action == 'group-addmembers') {
}
if ($result)
$OUTPUT->show_message('contactaddedtogroup');
$OUTPUT->show_message('contactaddedtogroup', 'confirmation');
else if ($plugin['abort'] || $CONTACTS->get_error())
$OUTPUT->show_message($plugin['message'] ?: 'errorsaving', 'error');
else
@ -72,7 +72,7 @@ else if ($RCMAIL->action == 'group-delmembers') {
$result = $plugin['result'];
if ($result) {
$OUTPUT->show_message('contactremovedfromgroup');
$OUTPUT->show_message('contactremovedfromgroup', 'confirmation');
$OUTPUT->command('remove_group_contacts',array('source' => $source, 'gid' => $gid));
}
else {

@ -208,7 +208,7 @@ else {
if (!$success)
$OUTPUT->show_message($errormsg, 'error');
else
$OUTPUT->show_message('movesuccess', 'notice', array('nr' => $success));
$OUTPUT->show_message('movesuccess', 'confirmation', array('nr' => $success));
// send response
$OUTPUT->send();

Loading…
Cancel
Save