Fix tag null bug
This commit is contained in:
parent
7839cf4f90
commit
4707adb2f6
1 changed files with 10 additions and 9 deletions
|
@ -230,14 +230,15 @@ class Sidebar extends Class
|
||||||
@opened = true
|
@opened = true
|
||||||
|
|
||||||
# Revent sidebar transitions
|
# Revent sidebar transitions
|
||||||
@tag.css("transition", "0.4s ease-out")
|
if @tag
|
||||||
@tag.css("transform", "translateX(-#{targetx}px)").one transitionEnd, =>
|
@tag.css("transition", "0.4s ease-out")
|
||||||
@tag.css("transition", "")
|
@tag.css("transform", "translateX(-#{targetx}px)").one transitionEnd, =>
|
||||||
if not @opened
|
@tag.css("transition", "")
|
||||||
@container.remove()
|
if not @opened
|
||||||
@container = null
|
@container.remove()
|
||||||
@tag.remove()
|
@container = null
|
||||||
@tag = null
|
@tag.remove()
|
||||||
|
@tag = null
|
||||||
|
|
||||||
# Revert body transformations
|
# Revert body transformations
|
||||||
@log "stopdrag", "opened:", @opened
|
@log "stopdrag", "opened:", @opened
|
||||||
|
@ -265,7 +266,7 @@ class Sidebar extends Class
|
||||||
# Database reload
|
# Database reload
|
||||||
@tag.find("#button-dbreload").off("click").on "click", =>
|
@tag.find("#button-dbreload").off("click").on "click", =>
|
||||||
wrapper.ws.cmd "dbReload", [], =>
|
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()
|
@updateHtmlTag()
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue