additional fixes
authordeb.monish <monish.deb@jmaconsulting.biz>
Wed, 18 Jul 2018 12:51:18 +0000 (18:21 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Fri, 10 Aug 2018 18:57:45 +0000 (00:27 +0530)
css/civicrmNavigation.css
js/crm.drupal7.js
js/crm.drupal8.js
js/crm.wordpress.js
templates/CRM/common/navigation.js.tpl

index e005bb004bd2846aeed67e1ebd42edc00a4b47ee..5cf48d3f3cd81cc7c6cb18e4bf52e75f2ce58700 100644 (file)
@@ -63,7 +63,7 @@ html>body .innerbox
 }
 
 #civicrm-menu {
-  position:absolute;
+  position:fixed;
   top:0;
   left:0;
   background:#1B1B1B repeat-x;
index 72a6d461d73bffc8f8bd2aef3afef90e4e8306b2..4be65e41065e27201a0c8fb9245bb3dec818b5a2 100644 (file)
@@ -10,8 +10,6 @@ CRM.$(function($) {
         // D7 hack, restore toolbar position (CRM-15341)
         $('#toolbar').css('z-index', '');
       }
-    })
-   .ready(function() {
-     $('#civicrm-menu').css({position: "fixed", top: "0px", 'width': '97%'});
-   });
+    });
+    $('#civicrm-menu').css({'width': '97%'});
 });
index b35656b41500a76b98bb2be066aef8ca9917e0d9..32c06a6bb43a1a1f3715c4be38f0507c637101c3 100644 (file)
@@ -1,14 +1,17 @@
 // http://civicrm.org/licensing
 CRM.$(function($) {
    // d8 Hack to hide title when it should be (CRM-19960)
-   $(document).ready(function() {
-     var pageTitle = $('.page-title');
-     if ('<span id="crm-remove-title" style="display:none">CiviCRM</span>' == pageTitle.text()) {
-       pageTitle.hide();
-     }
+   var pageTitle = $('.page-title');
+   if ('<span id="crm-remove-title" style="display:none">CiviCRM</span>' == pageTitle.text()) {
+     pageTitle.hide();
+   }
 
-     $('#civicrm-menu').css({position: "fixed", top: "0px", height: "29px"});
+   $('#toolbar-bar').hide();
 
-     $('#toolbar-bar').hide();
+   $('.crm-hidemenu').click(function(e) {
+     $('#toolbar-bar').slideDown();
+   });
+   $('#crm-notification-container').on('click', '#crm-restore-menu', function() {
+     $('#toolbar-bar').slideUp();
    });
 });
index e9667e6d1223095ff300ccbc4a4d2612ae869366..774b24a35fd0a3b52189bbf0b19b190dfd1516af 100644 (file)
@@ -17,8 +17,5 @@ CRM.$(function($) {
           $('#wpadminbar').toggle(e.data === 2);
         });
       }
-    })
-    .ready(function() {
-      $('#civicrm-menu').css({position: "fixed", top: "0px"});
-  });
+    });
 });
index 2b26596a74796dcd0616881993a5470b41512104..5902068185ebb3523bfcbf100c389bf7178990d9 100644 (file)
@@ -150,9 +150,6 @@ $('#civicrm-menu').ready(function() {
     });
   $('.crm-hidemenu').click(function(e) {
     $('#civicrm-menu').slideUp();
-    if ($('#toolbar-bar').length) {
-      $('#toolbar-bar').slideDown();
-    }
     if ($('#crm-notification-container').length) {
       var alert = CRM.alert({/literal}'<a href="#" id="crm-restore-menu" style="text-align: center; margin-top: -8px;">{ts escape='js'}Restore CiviCRM Menu{/ts}</a>'{literal}, '', 'none', {expires: 10000});
       $('#crm-restore-menu')
@@ -161,9 +158,6 @@ $('#civicrm-menu').ready(function() {
           e.preventDefault();
           alert.close();
           $('#civicrm-menu').slideDown();
-          if ($('#toolbar-bar').length) {
-            $('#toolbar-bar').slideUp();
-          }
         })
         .parent().css('text-align', 'center').find('.ui-button-text').css({'padding-top': '4px', 'padding-bottom': '4px'})
       ;