Merge pull request #18550 from eileenmcnaughton/search
[civicrm-core.git] / js / crm.designerapp.js
index 2b049a0c0f92ffb6df264ea4305bdc6506a1b206..fef007d2315144122bc59ae147d15f2a47dd19f3 100644 (file)
@@ -1,4 +1,4 @@
-(function ($, _) {
+(function ($, _, Backbone) {
   $(function () {
     /**
      * FIXME we depend on this being a global singleton, mainly to facilitate vents
@@ -16,7 +16,7 @@
      * @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,
@@ -30,4 +30,4 @@
       });
     };
   });
-})(CRM.$, CRM._);
+})(CRM.$, CRM._, CRM.BB);