mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Bugfix.
This commit is contained in:
@@ -87,6 +87,7 @@ class SQLlisting(EmailListing):
|
||||
tbltype = Qtable
|
||||
deflocation = "listing/"
|
||||
defcallback = "updatelisting"
|
||||
reset_wm_url = True
|
||||
|
||||
def __init__(self, filter, **kwargs):
|
||||
self.mbc = SQLconnector(filter)
|
||||
|
||||
@@ -293,6 +293,7 @@ class ImapListing(EmailListing):
|
||||
tbltype = WMtable
|
||||
deflocation = "INBOX/"
|
||||
defcallback = "wm_updatelisting"
|
||||
reset_wm_url = False
|
||||
|
||||
def __init__(self, user, password, **kwargs):
|
||||
self.mbc = IMAPconnector(user=user, password=password)
|
||||
|
||||
@@ -131,7 +131,9 @@ class EmailListing:
|
||||
"navbar" : self.render_navbar(page),
|
||||
"selection" : self.folder,
|
||||
"navparams" : self.navparams,
|
||||
"deflocation" : self.deflocation, "defcallback" : self.defcallback
|
||||
"deflocation" : self.deflocation,
|
||||
"defcallback" : self.defcallback,
|
||||
"reset_wm_url" : self.reset_wm_url
|
||||
})
|
||||
|
||||
class Email(object):
|
||||
|
||||
@@ -43,7 +43,11 @@ window.addEvent("domready", function() {
|
||||
if (event.target.parentNode.id) {
|
||||
var url = event.target.parentNode.id + "/";
|
||||
event.target.parentNode.setStyle("background", "#ffffcc");
|
||||
{% if reset_wm_url %}
|
||||
current_anchor.baseurl(url).update();
|
||||
{% else %}
|
||||
current_anchor.addbaseurl(url).update();
|
||||
{% endif %}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user