Skip to content

Commit

Permalink
Merge pull request #3666 from aptivate/add_structureboard_events
Browse files Browse the repository at this point in the history
Send custom events when the structureboard is shown and hidden.
  • Loading branch information
yakky committed Mar 5, 2015
2 parents 63a35cf + 817a3f7 commit 8a09f92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cms/static/cms/js/modules/cms.structureboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ $(document).ready(function () {
this.interval = setInterval(function () {
$(window).trigger('resize.sideframe');
}, interval);

$(window).trigger('structureboard_shown.sideframe');
},

_hideBoard: function () {
Expand All @@ -316,6 +318,8 @@ $(document).ready(function () {

// clear interval
clearInterval(this.interval);

$(window).trigger('structureboard_hidden.sideframe');
},

_resizeBoard: function () {
Expand Down

0 comments on commit 8a09f92

Please sign in to comment.