From 91200ddcdebb9e592cc264714c4a14921416868f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 3 Feb 2016 18:27:45 -0500 Subject: Change sidebar style --- assets/js/src/App.js | 2 -- assets/js/src/Sidebar.js | 25 ------------------------- 2 files changed, 27 deletions(-) delete mode 100644 assets/js/src/Sidebar.js (limited to 'assets/js/src') diff --git a/assets/js/src/App.js b/assets/js/src/App.js index 976b4554..0ae437c0 100644 --- a/assets/js/src/App.js +++ b/assets/js/src/App.js @@ -1,7 +1,6 @@ function App() { this.board = new Board(this); this.markdown = new Markdown(); - this.sidebar = new Sidebar(); this.search = new Search(this); this.swimlane = new Swimlane(); this.dropdown = new Dropdown(); @@ -33,7 +32,6 @@ App.prototype.listen = function() { this.project.listen(); this.popover.listen(); this.markdown.listen(); - this.sidebar.listen(); this.tooltip.listen(); this.dropdown.listen(); this.search.listen(); diff --git a/assets/js/src/Sidebar.js b/assets/js/src/Sidebar.js deleted file mode 100644 index 0794d6b3..00000000 --- a/assets/js/src/Sidebar.js +++ /dev/null @@ -1,25 +0,0 @@ -function Sidebar() { -} - -Sidebar.prototype.expand = function(e) { - e.preventDefault(); - $(".sidebar-container").removeClass("sidebar-collapsed"); - $(".sidebar-collapse").show(); - $(".sidebar h2").show(); - $(".sidebar ul").show(); - $(".sidebar-expand").hide(); -}; - -Sidebar.prototype.collapse = function(e) { - e.preventDefault(); - $(".sidebar-container").addClass("sidebar-collapsed"); - $(".sidebar-expand").show(); - $(".sidebar h2").hide(); - $(".sidebar ul").hide(); - $(".sidebar-collapse").hide(); -}; - -Sidebar.prototype.listen = function() { - $(document).on("click", ".sidebar-collapse", this.collapse); - $(document).on("click", ".sidebar-expand", this.expand); -}; -- cgit v1.2.3