changeset 383:b90744ec426e

browser_side: refresh the ChatPanel and MicroblogPanel when they are opened from a drag and drop
author souliane <souliane@mailoo.org>
date Wed, 26 Feb 2014 13:50:26 +0100
parents 06fbe6055925
children 8bb9c878b7e3
files browser_side/panels.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/panels.py	Wed Feb 26 09:19:53 2014 +0100
+++ b/browser_side/panels.py	Wed Feb 26 13:50:26 2014 +0100
@@ -633,6 +633,7 @@
         host.FillMicroblogPanel(_new_panel)
         host.bridge.call('getMassiveLastMblogs', _new_panel.massiveInsert, _type, _items, 10)
         host.setSelected(_new_panel)
+        _new_panel.refresh()
         return _new_panel
 
     @classmethod
@@ -1040,6 +1041,7 @@
         _new_panel = ChatPanel(host, _contact)  # XXX: pyjamas doesn't seems to support creating with cls directly
         _new_panel.historyPrint()
         host.setSelected(_new_panel)
+        _new_panel.refresh()
         return _new_panel
 
     def refresh(self):