mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
gui fixes
This commit is contained in:
@ -825,18 +825,16 @@ var Piler =
|
||||
|
||||
download_all_search_hits:function()
|
||||
{
|
||||
var url;
|
||||
Piler.log("[download_all_search_hits]");
|
||||
|
||||
url = '/index.php?route=message/dl';
|
||||
|
||||
jQuery.ajax( url, {
|
||||
jQuery.ajax('/index.php?route=message/dl', {
|
||||
type: "POST"
|
||||
})
|
||||
.done( function( a )// data, textStatus, jqXHR
|
||||
.done( function( a )
|
||||
{
|
||||
Piler.download_messages_real(a, Piler.bulkrestore_url);
|
||||
})
|
||||
.fail(function( a, b )// jqXHR, textStatus, errorThrown
|
||||
.fail(function( a, b )
|
||||
{
|
||||
alert("Problem retrieving XML data:" + b)
|
||||
});
|
||||
@ -846,6 +844,8 @@ var Piler =
|
||||
|
||||
download_selected_as_pdf:function()
|
||||
{
|
||||
Piler.log("[download_selected_as_pdf]");
|
||||
|
||||
var idlist = Piler.get_selected_messages_list();
|
||||
if(idlist) {
|
||||
Piler.download_messages_real(idlist, Piler.bulkpdf_url);
|
||||
|
@ -89,7 +89,7 @@
|
||||
|
||||
|
||||
<div class="boxfooter">
|
||||
<form class="form-inline sleek" name="tagging">
|
||||
<form class="form-inline sleek" name="tagging" onsubmit="return false;">
|
||||
|
||||
<?php if($n >= $page_len){ ?>
|
||||
<span class="piler-right-margin">
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
<?php } else { ?> <?php } ?>
|
||||
<?php if(ENABLE_DOWNLOADING_ALL_SEARCH_HITS == 1) { ?>
|
||||
<button id="download_all_search_hits" name="download_all_search_hits" class="btn btn-custom btn-inverse" onclick="Piler.download_all_search_hits();"><?php print $text_download_all_hits_as_eml; ?></button>
|
||||
<button id="download_all_search_hits_as_eml" name="download_all_search_hits_as_eml" class="btn btn-custom btn-inverse" onclick="Piler.download_all_search_hits();"><?php print $text_download_all_hits_as_eml; ?></button>
|
||||
<button id="download_all_search_hits_as_pdf" name="download_all_search_hits_as_pdf" class="btn btn-custom btn-warning" onclick="Piler.download_selected_as_pdf(); return false;"><?php print $text_download_selected_hits_as_pdf; ?></button>
|
||||
<?php } ?>
|
||||
|
||||
|
Reference in New Issue
Block a user