Skip to content

Commit

Permalink
fix(doc): syntax error
Browse files Browse the repository at this point in the history
selector [href=#] is not correct
init megamenu for demo in doc
  • Loading branch information
ygatesoupe committed Mar 30, 2016
1 parent b9c9be6 commit f958673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs-orange/assets/js/src/application-orange.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@

$(function () {

$('[href=#]').click(function (e) {
$('[href="#"]').click(function (e) {
e.preventDefault()
});

$(document).ready(function () {

// init megamenu demo
$('.mega-menu.panel').megamenu();
console.log('init');

$(window).scroll(function () {
if ($(this).scrollTop() > window.innerHeight) {
$('.scroll-top').fadeIn(function () {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/src/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$('.bd-example-indeterminate [type="checkbox"]').prop('indeterminate', true)

// Disable empty links in docs examples
$('.bd-example [href=#]').click(function (e) {
$('.bd-example [href="#"]').click(function (e) {
e.preventDefault()
})

Expand Down

0 comments on commit f958673

Please sign in to comment.