Skip to content

Commit

Permalink
adding auto close option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Radwan committed Oct 28, 2016
1 parent b7ec590 commit 1f5c4a3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
5 changes: 4 additions & 1 deletion sliiide.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
animation_curve: "cubic-bezier(0.54, 0.01, 0.57, 1.03)",
body_slide: true,
no_scroll: false,
auto_close: false
}, options );

var newSize;
Expand Down Expand Up @@ -331,7 +332,9 @@
};

$toggle.click(handleToggle);
$sliiider.find('a').on('click', function() {deactivate();});
if (settings.auto_close) {
$sliiider.find('a').on('click', function() {deactivate();});
}
$exit.on('click', function() {deactivate();});

var deleteProp = function() {
Expand Down
30 changes: 29 additions & 1 deletion sliiide.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f5c4a3

Please sign in to comment.