Merge branch 'master' into d3js

This commit is contained in:
Antoine Nguyen
2014-02-14 08:45:27 +01:00
4 changed files with 4 additions and 3 deletions
@@ -37,4 +37,4 @@ div.row label {
#id_attachment {
width: 290px;
}
}
@@ -945,7 +945,7 @@ Webmail.prototype = {
html: "<i class='icon-remove'></i>"
});
var $label = $("<label />", {html: fname});
var $div = $("<div />").append($delbtn, $label);
var $div = $("<div />", {'class': "row-fluid"}).append($delbtn, $label);
$delbtn.click(this.del_attachment);
$("#id_attachment").val("");
@@ -18,6 +18,7 @@ $(document).ready(function() {
poller_url: "{% url 'modoboa.extensions.webmail.views.check_unseen_messages' %}",
move_url: "{% url 'modoboa.extensions.webmail.views.move' %}",
submboxes_url: "{% url 'modoboa.extensions.webmail.views.submailboxes' %}",
delattachment_url: "{% url 'modoboa.extensions.webmail.views.delattachment' %}",
deflocation: "{{ deflocation }}",
defcallback: "{{ defcallback }}",
ro_mboxes: {% tolist ro_mboxes %},
+1 -1
View File
@@ -184,7 +184,7 @@ def editfolder(request, tplname="webmail/folder.html"):
if form.cleaned_data["name"] != oldname \
or (pf != oldparent):
newname = form.cleaned_data["name"] if pf is None \
else "%s.%s" % (pf, form.cleaned_data["name"])
else mbc.hdelimiter.join([pf, form.cleaned_data["name"]])
mbc.rename_folder(request.POST["oldname"], newname)
res["oldmb"] = oldname
res["newmb"] = form.cleaned_data["name"]