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
Zoheb Lokhandwala
whats-open
Commits
fa3ac5e1
Commit
fa3ac5e1
authored
Oct 26, 2013
by
Renfred Harper
Browse files
Add clipping to info toggle
parent
4595497e
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/static/js/info.js
View file @
fa3ac5e1
...
...
@@ -28,10 +28,7 @@ $(document).ready(function() {
// Only allow closing the info pane via click on larger screens
if
(
$
(
window
).
width
()
>=
992
)
{
$
(
this
).
slideUp
(
350
);
}
});
$
(
'
#info-close
'
).
click
(
function
()
{
$
(
'
#info-body
'
).
slideUp
(
350
);
}
});
// Displays more info about a restaurant on-click
$
(
document
).
on
(
'
click
'
,
'
.grid-box
'
,
function
()
{
...
...
@@ -94,5 +91,13 @@ $(document).ready(function() {
$
(
'
#info-body
'
).
slideDown
(
300
);
lastClicked
=
grid_id
;
}
if
(
$
(
window
).
width
()
<=
992
)
{
// On mobile displays, disable scrolling when info body is active
$
(
'
body
'
).
addClass
(
'
clip
'
);
}
});
$
(
'
#info-close
'
).
click
(
function
()
{
$
(
'
#info-body
'
).
slideUp
(
350
);
$
(
'
body
'
).
removeClass
(
'
clip
'
);
});
});
\ No newline at end of file
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