Fixed missing stuff from no selected message warning

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-12-18 15:42:53 +01:00
parent c8119d542b
commit 4a8baa3b2e
2 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ var Piler =
$('#deletebox-modal').modal('show');
},
bulk_remove_messages:function(reason, text_successfully_removed)
bulk_remove_messages:function(reason, text_successfully_removed, text_no_selected_message)
{
Piler.log("[bulk_remove_messages]");

View File

@ -60,7 +60,7 @@
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true"><?php print $text_close; ?></a>
<a href="#" onclick="var reason = $('#reason').val(); if(reason) { Piler.bulk_remove_messages(reason, '<?php if(NEED_TO_APPROVE_DELETE) { print $text_need_to_approve_removal; } else { print $text_successfully_removed; } ?>'); }" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">OK</a>
<a href="#" onclick="var reason = $('#reason').val(); if(reason) { Piler.bulk_remove_messages(reason, '<?php if(NEED_TO_APPROVE_DELETE) { print $text_need_to_approve_removal; } else { print $text_successfully_removed; } ?>', '<?php print $text_no_selected_message; ?>'); }" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">OK</a>
</div>
</div>
<?php } ?>