--Fix to support hook_civicrm_caseTypes
[civicrm-core.git] / js / crm.searchForm.js
index df5a2a7db0fafc135822fc9cc67505612a46115c..7e3a53b22bddf5addca734236ebec2bababb3fb2 100644 (file)
@@ -1,26 +1,4 @@
 // http://civicrm.org/licensing
-// Controls search form action links and refreshes
-cj(function($) {
-  $('#crm-main-content-wrapper')
-    // Widgetize the content area
-    .crmSnippet()
-    // Open action links in a popup
-    .off('click.crmLivePage')
-    .on('click.crmLivePage', 'a.button, a.action-item', function() {
-      var url = $(this).attr('href');
-      // only follow real links not javascript buttons
-      if (url === '#' || $(this).attr('onclick') || $(this).hasClass('no-popup')) {
-        return;
-      }
-      CRM.loadForm(url, {
-        openInline: 'a:not("[href=#], .no-popup")'
-      }).on('crmFormSuccess', function(e, data) {
-        // Refresh page when form completes
-        $('#crm-main-content-wrapper').crmSnippet('refresh');
-      });
-      return false;
-    });
-});
 
 function countSelectedCheckboxes(fldPrefix, form) {
   fieldCount = 0;