Skip to content

Commit

Permalink
listen for when panel is hovered and add class to body
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Cochran committed Nov 3, 2014
1 parent 1a4b7ba commit c1ac1ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shareabouts-js",
"version": "3.6.1",
"version": "3.6.2",
"dependencies": {
"underscore": ">=1.5",
"backbone": "~1.1.x",
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": "shareabouts-js",
"version": "3.6.1",
"version": "3.6.2",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.0",
Expand Down
9 changes: 9 additions & 0 deletions src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ var Shareabouts = Shareabouts || {};
view.$el.parent().parent().parent().removeClass('panel-form-open');
});

// Listen for when a panel is hovered
$('.shareabouts-panel').hover(
function() {
$('body').addClass('shareabouts-panel-hovered');
}, function() {
$('body').removeClass('shareabouts-panel-hovered');
}
);

// Init legend button object
$el.on('click', '.shareabouts-legend-button', function(evt) {
evt.preventDefault();
Expand Down

0 comments on commit c1ac1ba

Please sign in to comment.