Kunena Menu
Closing when Menu behavior: On click
14 years 1 month ago #6035
by ced1870
I will come back to this solution because I'm tired with all these problems in ipad.
Joomlack Webmaster and Developer
Replied by ced1870 on topic Closing when Menu behavior: On click
this is how it was working before ! click => open, re-click => closeMaybe there is a way for iPad to set like "iPad: click on the main-menu-link: open/(close), no other action", almooj-craig?
I will come back to this solution because I'm tired with all these problems in ipad.
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- Montimontt
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
14 years 1 month ago #6091
by Montimontt
Replied by Montimontt on topic Closing when Menu behavior: On click
I know I shouldn't bother you any more, but I have a last question/request:
Is it possible (and if, how does it work), ONLY FOR IPAD: to disable the menu to open on click?
click => not open menu, but load link
Thanks!
Montimontt
Is it possible (and if, how does it work), ONLY FOR IPAD: to disable the menu to open on click?
click => not open menu, but load link
Thanks!
Montimontt
Please Log in or Create an account to join the conversation.
- Montimontt
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
14 years 4 weeks ago #6146
by Montimontt
Replied by Montimontt on topic Closing when Menu behavior: On click
I tried the following with code I found (google
) in moomaximenuck.js, but it is not working:
(you would do me a big favour if you could help me this last time...)
(you would do me a big favour if you could help me this last time...)
Code:
function checkBrowserName(name){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf(name.toLowerCase())>-1) {
return true;
}
return false;
}
if(checkBrowserName('iPad')){
alert('');
}
else{
alert('
el.addEvent('mouseover',function() {
if (testoverflow == '1') this.testOverflowMaxiCK(menuID);
el.setStyle('z-index',15000);
this.showMaxiCK(dureein);
});
el.addEvent('mouseleave',function() {
el.setStyle('z-index',12001);
this.hideMaxiCK(dureeout);
});
');
}
Please Log in or Create an account to join the conversation.
14 years 4 weeks ago #6154
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Closing when Menu behavior: On click
look in your js file I have added a test mobile function : isMobile
comment this line :
and use the style onmouseover for your menu
Ced
comment this line :
Code:
navigator.userAgent.match(/iPad/i) ||
Ced
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- Montimontt
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
14 years 4 weeks ago #6157
by Montimontt
Replied by Montimontt on topic Closing when Menu behavior: On click
I am sorry, but I do not understand what you did? :huh:
Witch js file? comment?
By the way I am using style onmouseover..
Witch js file? comment?
By the way I am using style onmouseover..
Please Log in or Create an account to join the conversation.
14 years 4 weeks ago #6158
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Closing when Menu behavior: On click
the file moomaximenuck.js file in the assets folder
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.219 seconds



