Sidebar close button for small screens

This commit is contained in:
shortcutme 2017-07-29 13:44:54 +02:00
parent 467cd480cf
commit 527c2b4f54
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
4 changed files with 21 additions and 2 deletions

View file

@ -377,6 +377,12 @@ class Sidebar extends Class
wrapper.ws.cmd "sitePublish", {"inner_path": inner_path, "sign": false}, =>
@tag.find("#button-publish").removeClass "loading"
# Close
@tag.find(".close").off("click touchend").on "click touchend", (e) =>
@startDrag()
@stopDrag()
return false
@loadGlobe()