mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
wip: Webmail big refactoring and performance improvment
* some issues with drag&drop and mailboxes list were fixed * the pagination feature was fixed
This commit is contained in:
@@ -112,6 +112,7 @@ var AnchorNavigation = new Class({
|
||||
for (var i = 0; i < elems.length; i++) {
|
||||
this.setparamfromstring(elems[i]);
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
setparamfromstring: function(str) {
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
*/
|
||||
|
||||
function navbarcallback(event) {
|
||||
event.stop();
|
||||
current_anchor.setparams(navparams);
|
||||
current_anchor.parse_string($(event.target).getParent().get("href")).update();
|
||||
event.stop();
|
||||
current_anchor.reset()
|
||||
.setparams(navparams)
|
||||
.updateparams(this.get("href"))
|
||||
.update();
|
||||
}
|
||||
|
||||
function updatelisting(resp) {
|
||||
@@ -23,7 +25,7 @@ function updatelisting(resp) {
|
||||
}
|
||||
if ($defined(resp.navbar)) {
|
||||
$("navbar").set("html", resp.navbar);
|
||||
$("navbar").getChildren("a").addEvent("click", navbarcallback);
|
||||
$$("#navbar a").addEvent("click", navbarcallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user