Skip to content

Commit

Permalink
Merge pull request #651 from tf/hide-text-selector
Browse files Browse the repository at this point in the history
Allow setting hide text related css classes on wrapper
  • Loading branch information
tf committed Oct 20, 2016
2 parents 19fe16c + d2bfa4f commit f5d3f61
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
that = this;

parent.on('pageactivate', function(event) {
var pageOrPageWrapper = $(event.target).add('.content_and_background', event.target);

that.element.toggleClass('invert', $(event.target).hasClass('invert'));
that.element.toggleClass('hidden',
$(event.target).hasClass('hide_content_with_text') ||
$(event.target).hasClass('no_hidden_text_indicator'));
pageOrPageWrapper.hasClass('hide_content_with_text') ||
pageOrPageWrapper.hasClass('no_hidden_text_indicator'));
});

parent.on('hidetextactivate', function() {
Expand Down

0 comments on commit f5d3f61

Please sign in to comment.