Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
318:c12c9a1acf2f | 319:462a0a8894e3 |
---|---|
535 return | 535 return |
536 if self.empty or self.xhtml: | 536 if self.empty or self.xhtml: |
537 def cb(result): | 537 def cb(result): |
538 self._updateContent(result == richtext.CANCEL) | 538 self._updateContent(result == richtext.CANCEL) |
539 | 539 |
540 options = ('no_recipient', 'no_sync_unibox', 'no_style', 'update_msg', 'no_close') | 540 options = ['no_recipient', 'no_sync_unibox', 'no_style', 'no_close'] |
541 if not self.empty: | |
542 options.append('update_msg') | |
541 editor = richtext.RichTextEditor(self._blog_panel.host, self.panel, cb, options=options) | 543 editor = richtext.RichTextEditor(self._blog_panel.host, self.panel, cb, options=options) |
542 editor.setWidth('100%') | 544 editor.setWidth('100%') |
543 self.editbox = editor.textarea | 545 self.editbox = editor.textarea |
544 editor.setVisible(True) # needed to build the toolbar | 546 editor.setVisible(True) # needed to build the toolbar |
545 if self.editable_content[0]: | 547 if self.editable_content[0]: |