mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:30:12 +01:00
fixing delete feature
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
d1da0c93e7
commit
0c830b1276
@ -469,7 +469,7 @@ define('ACTION_UNAUTHORIZED_DOWNLOAD_ATTACHMENT', 16);
|
|||||||
define('ACTION_VIEW_JOURNAL', 17);
|
define('ACTION_VIEW_JOURNAL', 17);
|
||||||
define('ACTION_NOT_SPAM', 18);
|
define('ACTION_NOT_SPAM', 18);
|
||||||
define('ACTION_MARK_AS_PRIVATE', 19);
|
define('ACTION_MARK_AS_PRIVATE', 19);
|
||||||
define('ACTION_MARK_MESSAGE_FOR_REMOVAL, 20);
|
define('ACTION_MARK_MESSAGE_FOR_REMOVAL', 20);
|
||||||
|
|
||||||
$actions = array(
|
$actions = array(
|
||||||
'unknown' => 1,
|
'unknown' => 1,
|
||||||
|
@ -17,7 +17,6 @@ var Piler =
|
|||||||
extra_folders: '',
|
extra_folders: '',
|
||||||
bulkrestore_url: '/bulkrestore.php',
|
bulkrestore_url: '/bulkrestore.php',
|
||||||
bulkpdf_url: '/bulkpdf.php',
|
bulkpdf_url: '/bulkpdf.php',
|
||||||
text_successfully_removed: '<?php print $text_successfully_removed; ?>'
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* variables used at search listing
|
* variables used at search listing
|
||||||
@ -365,7 +364,7 @@ var Piler =
|
|||||||
$('#deletebox-modal').modal('show');
|
$('#deletebox-modal').modal('show');
|
||||||
},
|
},
|
||||||
|
|
||||||
bulk_remove_messages:function(reason)
|
bulk_remove_messages:function(reason, text_successfully_removed)
|
||||||
{
|
{
|
||||||
Piler.log("[bulk_remove_messages]");
|
Piler.log("[bulk_remove_messages]");
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true"><?php print $text_close; ?></a>
|
<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); }" 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 print $text_successfully_removed; ?>'); }" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">OK</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -149,7 +149,7 @@
|
|||||||
|
|
||||||
<span class="add-on"><?php print $text_with_selected; ?>: </span>
|
<span class="add-on"><?php print $text_with_selected; ?>: </span>
|
||||||
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
|
<?php if(SMARTHOST || ENABLE_IMAP_AUTH == 1) { ?>
|
||||||
<a href="#" class="btn btn-custom btn-inverse<?php if(Registry::get('auditor_user') == 1) { ?> confirm-delete"><?php } else { ?>" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>', '');" title="<?php print $text_bulk_restore_selected_emails; ?>"><?php } ?><i class="icon-share-alt"></i></a>
|
<a href="#" class="btn btn-custom btn-inverse<?php if(Registry::get('auditor_user') == 1) { ?> confirm-delete"<?php } else { ?>" onclick="Piler.bulk_restore_messages('<?php print $text_restored; ?>', '');" <?php } ?> title="<?php print $text_bulk_restore_selected_emails; ?>"><i class="icon-share-alt"></i></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_messages();" title="<?php print $text_bulk_download; ?>"><i class="icon-download-alt"></i></a>
|
<a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_messages();" title="<?php print $text_bulk_download; ?>"><i class="icon-download-alt"></i></a>
|
||||||
<!--a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_selected_as_pdf();" title="<?php print $text_download_selected_hits_as_pdf; ?>"><i class="icon-file"></i></a-->
|
<!--a href="#" class="btn btn-custom btn-inverse" onclick="Piler.download_selected_as_pdf();" title="<?php print $text_download_selected_hits_as_pdf; ?>"><i class="icon-file"></i></a-->
|
||||||
|
Loading…
Reference in New Issue
Block a user