-(function ($, _) {
+(function ($, _, Backbone) {
$(function () {
/**
* FIXME we depend on this being a global singleton, mainly to facilitate vents
* @see CRM-12188
*/
CRM.designerApp.clearPreviewArea = function () {
- $('.crm-profile-selector-preview-pane > .crm-form-block').each(function () {
+ $('.crm-profile-selector-preview-pane > *').each(function () {
var parent = $(this).parent();
CRM.designerApp.DetachedProfiles.push({
parent: parent,
});
};
});
-})(CRM.$, CRM._);
+})(CRM.$, CRM._, CRM.BB);