Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GheorgheP committed May 26, 2017
1 parent b134cba commit 064408e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions includes/page-builder/static/js/editor_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,18 @@
])
}
})

/**
* Add the 'fw-page-builder-editor-integration-active' body class when the PageBuilder is active
*/
var className = 'fw-page-builder-editor-integration-active'
fwEvents.on('fw:ext:page-builder:editor-integration:show', function show () {
$('body').addClass(className)
})

fwEvents.on('fw:ext:page-builder:editor-integration:hide', function hide () {
$('body').removeClass(className)
})
})(jQuery, fwEvents, fw_option_type_page_builder_editor_integration_data)

/**
Expand Down

0 comments on commit 064408e

Please sign in to comment.