Mercurial > libervia-web
changeset 774:734e59ba74a7
browser_side (blog): ask to delete a message after it has been modified and left with an empty body
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 26 Nov 2015 20:18:25 +0100 |
parents | 08aa9acc8367 |
children | 08c6e097ff5d |
files | src/browser/sat_browser/blog.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py Thu Nov 26 19:55:55 2015 +0100 +++ b/src/browser/sat_browser/blog.py Thu Nov 26 20:18:25 2015 +0100 @@ -260,6 +260,8 @@ @return: False to restore the original content if a deletion has been cancelled """ if not content['text']: # previous content has been emptied + if not self.new: + self._onRetractClick() return False self.item.content = self.item.content_rich = self.item.content_xhtml = None