Post the correct form!

fixes #429
This commit is contained in:
Antoine Nguyen
2013-06-21 16:42:48 +02:00
parent c2a0304038
commit d0e4cf6642
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ class SieveClient(object):
def pushscript(self, name, content, active=False):
if type(content) is unicode:
content = str(content)
content = content.encode("utf-8")
if not self.msc.havespace(name, len(content)):
error = "%s (%s)" % (_("Not enough space on server"), self.msc.errmsg)
raise SieveClientError(error)
@@ -236,6 +236,7 @@ function filtersetform_cb() {
});
$(".submit").one('click', function(e) {
simple_ajax_form_post(e, {
formid: "newfiltersset",
reload_on_success: false,
error_cb: filtersetform_cb,
success_cb: filterset_created