comparison src/browser/sat_browser/blog.py @ 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
comparison
equal deleted inserted replaced
773:08aa9acc8367 774:734e59ba74a7
258 """Send the new content to the backend 258 """Send the new content to the backend
259 259
260 @return: False to restore the original content if a deletion has been cancelled 260 @return: False to restore the original content if a deletion has been cancelled
261 """ 261 """
262 if not content['text']: # previous content has been emptied 262 if not content['text']: # previous content has been emptied
263 if not self.new:
264 self._onRetractClick()
263 return False 265 return False
264 266
265 self.item.content = self.item.content_rich = self.item.content_xhtml = None 267 self.item.content = self.item.content_rich = self.item.content_xhtml = None
266 self.item.title = self.item.title_rich = self.item.title_xhtml = None 268 self.item.title = self.item.title_rich = self.item.title_xhtml = None
267 269