gui fixes

This commit is contained in:
SJ
2013-11-16 20:23:15 +01:00
parent 04ab9c7b38
commit 01357374ba
4 changed files with 10 additions and 9 deletions

View File

@ -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);