diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-06-02 11:28:32 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-06-02 11:28:32 -0400 |
commit | d06b10d5f084aceecdd302036697212a8d8d08e5 (patch) | |
tree | 0e4ba19279ad714ae1c1f3ab9f83e0001df0a4f6 | |
parent | e1ad0033a34576b663caca96091eeed012d3447b (diff) | |
download | elgg-d06b10d5f084aceecdd302036697212a8d8d08e5.tar.gz elgg-d06b10d5f084aceecdd302036697212a8d8d08e5.tar.bz2 |
Fixes #2424 confirmation message when deleting multiple messages
-rw-r--r-- | languages/en.php | 1 | ||||
-rw-r--r-- | mod/messages/views/default/forms/messages/process.php | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/languages/en.php b/languages/en.php index 6c06d70b5..1865f6ecd 100644 --- a/languages/en.php +++ b/languages/en.php @@ -938,6 +938,7 @@ $english = array( */ 'deleteconfirm' => "Are you sure you want to delete this item?", + 'deleteconfirm:plural' => "Are you sure you want to delete these items?", 'fileexists' => "A file has already been uploaded. To replace it, select it below:", /** diff --git a/mod/messages/views/default/forms/messages/process.php b/mod/messages/views/default/forms/messages/process.php index f86c3217a..cb30792e9 100644 --- a/mod/messages/views/default/forms/messages/process.php +++ b/mod/messages/views/default/forms/messages/process.php @@ -19,10 +19,12 @@ echo $messages; echo '</div>'; echo '<div class="elgg-foot messages-buttonbank">'; + echo elgg_view('input/submit', array( 'value' => elgg_echo('delete'), 'name' => 'delete', - 'class' => 'elgg-button-delete', + 'class' => 'elgg-button-delete elgg-requires-confirmation', + 'title' => elgg_echo('deleteconfirm:plural'), )); if ($vars['folder'] == "inbox") { |