diff --git a/browser/form.py b/browser/form.py index cae6b05..62e8b1b 100644 --- a/browser/form.py +++ b/browser/form.py @@ -79,8 +79,7 @@ class ObjectForm(NodeView): def closeAction(self, submit=False): if self.isInnerHtml: - return ("closeDataWidget(%s); dialog.hide();" % - (submit and 'true' or 'false')) + return "return closeDialog(%s);" % (submit and 'true' or 'false') if submit: return "xhrSubmitPopup('dialog_form', '%s'); return false" % (self.request.URL) return 'window.close()' diff --git a/browser/form_macros.pt b/browser/form_macros.pt index 1cd0d86..5779aba 100644 --- a/browser/form_macros.pt +++ b/browser/form_macros.pt @@ -4,6 +4,7 @@