Change sidebar style
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user