Merge pull request #13867 from jitendrapurohit/paypalpro
[civicrm-core.git] / js / crm.drupal7.js
index facd7f1a095bd2ba857e139dfa7ce0dcf115fe81..8dc539d5027927ac2505b432e85b3150be3499d7 100644 (file)
@@ -1,5 +1,5 @@
 // http://civicrm.org/licensing
-CRM.$(function($) {
+(function($) {
   $(document)
     .on('dialogopen', function(e) {
       // D7 hack to get the toolbar out of the way (CRM-15341)
@@ -11,7 +11,4 @@ CRM.$(function($) {
         $('#toolbar').css('z-index', '');
       }
     });
-  if ($('#toolbar a.toggle').length) {
-    $('#civicrm-menu').css({width: 'calc(100% - 40px)'});
-  }
-});
+})(CRM.$);