mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:57:03 +02:00
added a not spam link to preview pane
This commit is contained in:
@ -303,6 +303,21 @@ var Piler =
|
||||
},
|
||||
|
||||
|
||||
not_spam:function(id)
|
||||
{
|
||||
Piler.log("[not_spam]", id);
|
||||
|
||||
jQuery.ajax('index.php?route=message/notspam', {
|
||||
data: { id: id },
|
||||
type: "POST"
|
||||
})
|
||||
.done( function( a ) {})
|
||||
.fail(function(a, b) { alert("Problem retrieving XML data:" + b) });
|
||||
|
||||
Piler.show_message('messagebox1', "OK", 0.8);
|
||||
},
|
||||
|
||||
|
||||
restore_message:function(id)
|
||||
{
|
||||
Piler.log("[restore_message]");
|
||||
|
@ -22,6 +22,9 @@
|
||||
<a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_headers; ?></a>
|
||||
<?php if($message['has_journal'] == 1 && Registry::get('auditor_user') == 1 && SHOW_ENVELOPE_JOURNAL == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.view_journal(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_journal_envelope; ?></a>
|
||||
<?php } ?>
|
||||
<?php if($spam == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.not_spam(<?php print $id; ?>);"><i class="icon-exclamation-sign"></i> <?php print $text_not_spam; ?></a>
|
||||
<?php } ?>
|
||||
| <a href="#" onclick="Piler.print_div('messageblock');"><i class="icon-print"></i> <?php print $text_print_message; ?></a>
|
||||
|
||||
|
@ -23,6 +23,10 @@
|
||||
<?php if($message['has_journal'] == 1 && Registry::get('auditor_user') == 1 && SHOW_ENVELOPE_JOURNAL == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.view_journal(<?php print $id; ?>);"><i class="icon-envelope"></i> <?php print $text_view_journal_envelope; ?></a>
|
||||
<?php } ?>
|
||||
<?php if($spam == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.not_spam(<?php print $id; ?>);"><i class="icon-exclamation-sign"></i> <?php print $text_not_spam; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
| <a class="messagelink" href="#" onclick="Piler.print_div('messageblock');"><i class="icon-print"></i> <?php print $text_print_message; ?></a>
|
||||
|
||||
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 0) {
|
||||
|
Reference in New Issue
Block a user