Skip to content

Commit

Permalink
- removed debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
fontenele committed Oct 19, 2020
1 parent bd915d6 commit 20a7dd0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions dist/js/bootstrap-navbar-dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
}

$(this).addClass("nv-dropdown-" + options.theme);
console.log('selector', options.trigger, $(this).find(options.dropdownSelector));
$(this).find(options.dropdownSelector).on(options.trigger, function (e) {
console.log('clicjed', this);
var $el = $(this).children('.dropdown-toggle');

if ($el.length > 0 && $(e.target).hasClass('dropdown-toggle')) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/bootstrap-navbar-dropdowns.min.js

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

4 changes: 2 additions & 2 deletions example-bs3.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu"
crossorigin="anonymous">
<!-- <link href="dist/css/bootstrap-navbar-dropdowns.min.css" rel="stylesheet">-->
<link href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.1/dist/css/bootstrap-navbar-dropdowns.min.css"
<link href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/css/bootstrap-navbar-dropdowns.min.css"
rel="stylesheet">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
Expand Down Expand Up @@ -113,7 +113,7 @@ <h1>Navbar example</h1>
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
crossorigin="anonymous"></script>

<script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.1/dist/js/bootstrap-navbar-dropdowns.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/js/bootstrap-navbar-dropdowns.min.js"></script>
<script>
$('.navbar').navbarDropdown({theme: 'bs3', trigger: 'mouseover'});
</script>
Expand Down
4 changes: 2 additions & 2 deletions example-bs4.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.1/dist/css/bootstrap-navbar-dropdowns.min.css"
<link href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/css/bootstrap-navbar-dropdowns.min.css"
rel="stylesheet">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
Expand Down Expand Up @@ -124,7 +124,7 @@ <h1>Bootstrap NavBar</h1>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.1/dist/js/bootstrap-navbar-dropdowns.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/js/bootstrap-navbar-dropdowns.min.js"></script>
<script>
$('.navbar').navbarDropdown({trigger: 'mouseover'});
</script>
Expand Down
4 changes: 2 additions & 2 deletions example-bs5.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha2/css/bootstrap.min.css"
integrity="sha384-DhY6onE6f3zzKbjUPRc2hOzGAdEf4/Dz+WJwBvEYL/lkkIsI3ihufq9hk9K4lVoK"
crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.1/dist/css/bootstrap-navbar-dropdowns.min.css"
<link href="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/css/bootstrap-navbar-dropdowns.min.css"
rel="stylesheet">
<style>
html,
Expand Down Expand Up @@ -134,7 +134,7 @@ <h1 class="h1 mb-0 lh-1">Bootstrap NavBar</h1>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha2/js/bootstrap.min.js"
integrity="sha384-5h4UG+6GOuV9qXh6HqOLwZMY4mnLPraeTrjT5v07o347pj6IkfuoASuGBhfDsp3d"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.1/dist/js/bootstrap-navbar-dropdowns.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/fontenele/bootstrap-navbar-dropdowns@5.0.2/dist/js/bootstrap-navbar-dropdowns.min.js"></script>
<script>
$('.navbar').navbarDropdown({theme: 'bs5', trigger: 'mouseover'});
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-navbar-dropdowns",
"version": "5.0.1",
"version": "5.0.2",
"description": "Twitter Bootstrap 4 Responsive Navbar with Multiple Dropdowns",
"main": "dist/js/index.js",
"scripts": {
Expand Down

0 comments on commit 20a7dd0

Please sign in to comment.