X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fcrm.drupal.js;h=2f14c499216e2e38bba0c202fc3a4d9b8cc9201d;hb=b9331a134ecb82fb7a084ec3326896cca41f0758;hp=4c1849cbc077f98e2750771734a61d1d3a7b2b1a;hpb=3c230724ef43e5e842d00014d729d40c3eb5bd96;p=civicrm-core.git diff --git a/js/crm.drupal.js b/js/crm.drupal.js index 4c1849cbc0..2f14c49921 100644 --- a/js/crm.drupal.js +++ b/js/crm.drupal.js @@ -1,16 +1,6 @@ // http://civicrm.org/licensing CRM.$(function($) { $(document) - .on('crmLoad', function(e) { - // This is drupal's old-school way of listening for 'load' type events. It has to be called manually. - Drupal.attachBehaviors(e.target); - }) - .on('crmUnload', function(e) { - // This function doesn't exist in D6 so call conditionally - if (typeof Drupal.detachBehaviors === 'function') { - Drupal.detachBehaviors(e.target); - } - }) .on('dialogopen', function(e) { // D7 hack to get the toolbar out of the way (CRM-15341) $('#toolbar').css('z-index', '100'); @@ -20,5 +10,5 @@ CRM.$(function($) { // D7 hack, restore toolbar position (CRM-15341) $('#toolbar').css('z-index', ''); } - }) + }); });