Thread: Admin Menus
View Single Post
  #4  
Old 01-25-2012, 02:57 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Admin Menus

Try the following solution:

1. alter the "skin/common_files/(admin/single/provider)/home.tpl" templates and insert this code right after the <body> tag:
Code:
<!-- iPad fix --> {literal} <script type="text/javascript"> $(document).ready(function() { // trigger the function when clicking on an assigned element $("#horizontal-menu li").click(function () { var menuDiv = $(this).children("#horizontal-menu li div"); if (menuDiv.is(":hidden")) { menuDiv.addClass("iPadJSDDMenu"); menuDiv.slideDown("fast"); } else { menuDiv.removeClass("iPadJSDDMenu"); menuDiv.hide(); } }); }); </script> {/literal}

2. alter the "skin/common_files/css/skin1_admin.css" file and replace this code fragment:
Code:
.horizontal-menu-li-hover-div, #horizontal-menu li:hover div { display: block; position: absolute; left: -1px; top: 21px; background: #fff; border: 1px #aaa solid; border-top: 0 none; min-width: 170px; }

with this one:
Code:
/*.horizontal-menu-li-hover-div, #horizontal-menu li:hover div { display: block; position: absolute; left: -1px; top: 21px; background: #fff; border: 1px #aaa solid; border-top: 0 none; min-width: 170px; }*/ .iPadJSDDMenu { display: block; position: absolute; left: -1px; top: 21px; background: #fff; border: 1px #aaa solid; border-top: 0 none; min-width: 170px; }

Thats all, after the modification is complete admin menu will be using click JS events instead of DHTML hover.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote