Skip to content

Commit

Permalink
Fix to hide/show elements only of current map
Browse files Browse the repository at this point in the history
  • Loading branch information
Indigo744 committed Oct 30, 2015
1 parent a8f4d95 commit dc1994c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
$self.on("hideAllElems", function(e, hide) {
// if hide is not set, we hide it be default
hide = (typeof hide === "undefined") ? true : hide;
$("[data-type='elem']").each(function() {
$("[data-type='elem']", $(this)).each(function() {
if (($(this).attr('data-hidden') === "0" && hide === true) ||
($(this).attr('data-hidden') === "1" && hide === false)) {
$(this).trigger('click', false);
Expand Down

0 comments on commit dc1994c

Please sign in to comment.