Fix tag null bug

This commit is contained in:
shortcutme 2016-11-18 20:14:58 +01:00
parent 7839cf4f90
commit 4707adb2f6

View file

@ -230,6 +230,7 @@ class Sidebar extends Class
@opened = true
# Revent sidebar transitions
if @tag
@tag.css("transition", "0.4s ease-out")
@tag.css("transform", "translateX(-#{targetx}px)").one transitionEnd, =>
@tag.css("transition", "")
@ -265,7 +266,7 @@ class Sidebar extends Class
# Database reload
@tag.find("#button-dbreload").off("click").on "click", =>
wrapper.ws.cmd "dbReload", [], =>
wrapper.notifications.add "done-dbreload", "done", "Database schema reloaded", 5000
wrapper.notifications.add "done-dbreload", "done", "Database schema reloaded!", 5000
@updateHtmlTag()
return false