mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
* Complete folder manipulation support (add/edit/remove), * Javascript code refactoring, * MEDIAL_URL variable is now exposed to the javascript code. see #55
26 lines
613 B
JavaScript
26 lines
613 B
JavaScript
/*
|
|
* Shared functions between the webmail and the quarantine plugin.
|
|
*
|
|
*/
|
|
|
|
function navbarcallback(event) {
|
|
event.stop();
|
|
current_anchor.setparams(navparams);
|
|
current_anchor.parse_string($(event.target).getParent().get("href")).update();
|
|
}
|
|
|
|
function updatelisting(resp) {
|
|
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").getChildren("a").addEvent("click", navbarcallback);
|
|
}
|
|
}
|
|
|