Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
masonstrap
Commits
6a93a86c
Commit
6a93a86c
authored
Feb 23, 2015
by
Thomas Park
Browse files
prevent default on button clicks
parent
574c4e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/bootswatch.js
View file @
6a93a86c
...
...
@@ -10,6 +10,10 @@
$
(
'
#home > .navbar
'
).
addClass
(
'
navbar-transparent
'
);
});
$
(
"
a[href='#'
"
).
click
(
function
(
e
)
{
e
.
preventDefault
();
});
var
$button
=
$
(
"
<div id='source-button' class='btn btn-primary btn-xs'>< ></div>
"
).
click
(
function
(){
var
html
=
$
(
this
).
parent
().
html
();
html
=
cleanSource
(
html
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment