Change sidebar style

This commit is contained in:
Frederic Guillot
2016-02-03 18:27:45 -05:00
parent fc0bed2b74
commit 91200ddcde
18 changed files with 53 additions and 119 deletions

View File

@@ -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();

View File

@@ -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);
};