mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
* some issues with drag&drop and mailboxes list were fixed * the pagination feature was fixed
32 lines
733 B
JavaScript
32 lines
733 B
JavaScript
/*
|
|
* Shared functions between the webmail and the quarantine plugin.
|
|
*
|
|
*/
|
|
|
|
function navbarcallback(event) {
|
|
event.stop();
|
|
current_anchor.reset()
|
|
.setparams(navparams)
|
|
.updateparams(this.get("href"))
|
|
.update();
|
|
}
|
|
|
|
function updatelisting(resp) {
|
|
if ($defined(resp.url)) {
|
|
current_anchor.baseurl(resp.url).update();
|
|
return;
|
|
}
|
|
if ($defined(resp.menu)) {
|
|
$("menubar").set("html", resp.menu);
|
|
parse_menubar("menubar");
|
|
}
|
|
if ($defined(resp.listing)) {
|
|
$("listing").set("html", resp.listing);
|
|
}
|
|
if ($defined(resp.navbar)) {
|
|
$("navbar").set("html", resp.navbar);
|
|
$$("#navbar a").addEvent("click", navbarcallback);
|
|
}
|
|
}
|
|
|