Display warning if no message is selected when removing

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-12-18 15:29:28 +01:00
parent 936f27c7a5
commit c8119d542b
11 changed files with 24 additions and 3 deletions

View File

@ -487,3 +487,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -494,3 +494,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -237,6 +237,7 @@ $_['text_no_domain_found'] = 'No domain found';
$_['text_no_email_found'] = 'No email found'; $_['text_no_email_found'] = 'No email found';
$_['text_no_message_in_the_quarantine'] = "No message in the quarantine matching the search criteria"; $_['text_no_message_in_the_quarantine'] = "No message in the quarantine matching the search criteria";
$_['text_no_records'] = "No records"; $_['text_no_records'] = "No records";
$_['text_no_selected_message'] = "no selected message";
$_['text_no_sender'] = "no sender"; $_['text_no_sender'] = "no sender";
$_['text_no_spam_message_in_the_quarantine_yet'] = "No spam message in the quarantine yet"; $_['text_no_spam_message_in_the_quarantine_yet'] = "No spam message in the quarantine yet";
$_['text_no_subject'] = "no subject"; $_['text_no_subject'] = "no subject";

View File

@ -492,3 +492,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -489,3 +489,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -238,6 +238,7 @@ $_['text_no_domain_found'] = 'Nem találtam domaineket';
$_['text_no_email_found'] = 'Nem találtam emaileket'; $_['text_no_email_found'] = 'Nem találtam emaileket';
$_['text_no_message_in_the_quarantine'] = "Nincs a keresési feltételnek megfelelő üzenet a karanténban"; $_['text_no_message_in_the_quarantine'] = "Nincs a keresési feltételnek megfelelő üzenet a karanténban";
$_['text_no_records'] = "nincs találat"; $_['text_no_records'] = "nincs találat";
$_['text_no_selected_message'] = "nincs kijelölt üzenet";
$_['text_no_sender'] = "nincs feladó"; $_['text_no_sender'] = "nincs feladó";
$_['text_no_spam_message_in_the_quarantine_yet'] = "Nincs spam a karanténban"; $_['text_no_spam_message_in_the_quarantine_yet'] = "Nincs spam a karanténban";
$_['text_no_subject'] = "nincs tárgy"; $_['text_no_subject'] = "nincs tárgy";

View File

@ -489,3 +489,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -482,3 +482,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -490,3 +490,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -490,3 +490,5 @@ $_['text_deleted'] = "Deleted";
$_['text_reason_of_rejection'] = "Reason of rejection"; $_['text_reason_of_rejection'] = "Reason of rejection";
$_['text_reject'] = "Reject"; $_['text_reject'] = "Reject";
$_['text_user_data_officer'] = "Data officer"; $_['text_user_data_officer'] = "Data officer";
$_['text_no_selected_message'] = "no selected message";

View File

@ -372,7 +372,10 @@ var Piler =
var idlist = Piler.get_selected_messages_list(); var idlist = Piler.get_selected_messages_list();
if(!idlist) return; if(!idlist) {
Piler.show_message('messagebox1', text_no_selected_message, 2.5);
return;
}
jQuery.ajax('/bulkremove.php', { jQuery.ajax('/bulkremove.php', {
data: { idlist: idlist, reason: reason }, data: { idlist: idlist, reason: reason },