Fixed a problem click propagation for the control sidebar toggle button

pull/399/head
Abdullah Almsaeed 2015-05-06 22:53:47 -04:00
parent b80104171d
commit c0280e2819
2 changed files with 5 additions and 4 deletions

7
dist/js/app.js vendored
View File

@ -444,6 +444,7 @@ function _init() {
//Listen to the click event
btn.on('click', function (e) {
e.preventDefault();
e.stopPropagation();
//If the sidebar is not open
if (!sidebar.hasClass('control-sidebar-open')
&& !$('body').hasClass('control-sidebar-open')) {
@ -474,9 +475,9 @@ function _init() {
//Slide over content
if (slide) {
sidebar.addClass('control-sidebar-open');
$('.content-wrapper, .right-side').on('click', function () {
_this.close(sidebar, slide);
});
$(document).on('click', function () {
_this.close(sidebar, slide);
});
} else {
//Push the content by adding the open class to the body instead
//of the sidebar itself

2
dist/js/app.min.js vendored

File diff suppressed because one or more lines are too long