Mercurial > libervia-web
diff browser_side/panels.py @ 319:462a0a8894e3
browser_side: display the good text for microblog button regarding the context: "Send message" or "Update"
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 03 Jan 2014 16:06:00 +0100 |
parents | 09205b410a53 |
children | 971e3812903a |
line wrap: on
line diff
--- a/browser_side/panels.py Fri Jan 03 14:19:01 2014 +0100 +++ b/browser_side/panels.py Fri Jan 03 16:06:00 2014 +0100 @@ -537,7 +537,9 @@ def cb(result): self._updateContent(result == richtext.CANCEL) - options = ('no_recipient', 'no_sync_unibox', 'no_style', 'update_msg', 'no_close') + options = ['no_recipient', 'no_sync_unibox', 'no_style', 'no_close'] + if not self.empty: + options.append('update_msg') editor = richtext.RichTextEditor(self._blog_panel.host, self.panel, cb, options=options) editor.setWidth('100%') self.editbox = editor.textarea