comparison src/browser/sat_browser/notification.py @ 591:e11e34ac0f67 frontends_multi_profiles

browser_side: fixes Notification.onFocus
author souliane <souliane@mailoo.org>
date Fri, 06 Feb 2015 17:52:26 +0100
parents 97c72fe4a5f2
children 03e9fe91081c
comparison
equal deleted inserted replaced
589:a5019e62c3e9 591:e11e34ac0f67
87 self.enabled = true; //need to use self instead of this 87 self.enabled = true; //need to use self instead of this
88 }); 88 });
89 """) 89 """)
90 wnd().onclick = self._old_click 90 wnd().onclick = self._old_click
91 91
92 def onFocus(self): 92 def onFocus(self, event=None):
93 Window.setTitle(self._orig_title) 93 Window.setTitle(self._orig_title)
94 self._notif_count = 0 94 self._notif_count = 0
95 95
96 # def onBlur(self): 96 # def onBlur(self, event=None):
97 # pass 97 # pass
98 98
99 def isHidden(self): 99 def isHidden(self):
100 JS("""return document.hidden;""") 100 JS("""return document.hidden;""")
101 101