mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
added download all hits feature
This commit is contained in:
@ -769,11 +769,9 @@ var Piler =
|
||||
},
|
||||
|
||||
|
||||
download_messages:function()
|
||||
download_messages_real:function(idlist)
|
||||
{
|
||||
var idlist = Piler.get_selected_messages_list();
|
||||
|
||||
Piler.log("[download_selected_emails]", idlist);
|
||||
Piler.log("[download_messages_real]", idlist);
|
||||
|
||||
if(idlist) {
|
||||
var form = document.createElement("form");
|
||||
@ -804,6 +802,34 @@ var Piler =
|
||||
},
|
||||
|
||||
|
||||
download_messages:function()
|
||||
{
|
||||
var idlist = Piler.get_selected_messages_list();
|
||||
Piler.download_messages_real(idlist);
|
||||
},
|
||||
|
||||
|
||||
download_all_search_hits:function()
|
||||
{
|
||||
var url;
|
||||
|
||||
url = '/index.php?route=message/dl';
|
||||
|
||||
jQuery.ajax( url, {
|
||||
type: "POST"
|
||||
})
|
||||
.done( function( a )// data, textStatus, jqXHR
|
||||
{
|
||||
Piler.download_messages_real(a);
|
||||
})
|
||||
.fail(function( a, b )// jqXHR, textStatus, errorThrown
|
||||
{
|
||||
alert("Problem retrieving XML data:" + b)
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
|
||||
auditexpert:function()
|
||||
{
|
||||
Piler.log("[auditexpert]");
|
||||
|
Reference in New Issue
Block a user