-
AuthorPosts
-
claude_troncy Friend
claude_troncy
- Join date:
- March 2010
- Posts:
- 2
- Downloads:
- 4
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
March 6, 2010 at 10:18 pm #149265Hello everybody,
I am new to Joomla and purity 2 template.
In mega.clas.php I changed action:’mouseover’ by action: ‘click’. It does exactly what I wanted. The menu is only displayed when I click on it and not when the mouse fly over, which sometimes is disturbing.But the problem is It was impossible to click on a submenu to load an article, nothing happens.
I also noticed that the tips variable is set to false, but thoses tips are nevertheless displayed.
Any idea
Merci
Best regards
Claudeclaude_troncy Friendclaude_troncy
- Join date:
- March 2010
- Posts:
- 2
- Downloads:
- 4
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
March 12, 2010 at 9:04 pm #336007After testing a lot trying to find why it was not working I suspected there was something wrong with the “mouse click action” in the module mega.js . It looks that this “click action” was going round in circles.
SO I changed some “click” by “mousedown”
1
if (this.options.action==’click’) {
if (li.childcontent) {
// Before li.addEvent(‘click’, function(e) {
li.addEvent(‘mousedown’, function(e) {2 In itemShow
if (this.options.action==’click’ && this.childopen.length && !this.windowClickEventAdded) {
//addEvent click for window
// Before $(document.body).addEvent (‘click’, this.windowClickFn);
$(document.body).addEvent (‘mousedown’, this.windowClickFn);3 In ItemHide
if (this.options.action==’click’ && !this.childopen.length && this.windowClickEventAdded) {
//removeEvent click for window
// before $(document.body).removeEvent (‘click’, this.windowClickFn);
$(document.body).removeEvent (‘mousedown’, this.windowClickFn);Now it is working. Please do not ask me why.:)
regards
Claude
1 user says Thank You to claude_troncy for this useful post
David Porré FriendDavid Porré
- Join date:
- September 2014
- Posts:
- 194
- Downloads:
- 44
- Uploads:
- 5
- Thanks:
- 23
- Thanked:
- 9 times in 1 posts
October 28, 2010 at 8:58 am #360872Hello claude_troncy,
Nice workaround ! I tried it and it works, but there is a little problem at mys side…
I lost the mouseover effect (menu item chanignig color when the mouse is on it), do you also have that problem ?And I would like even a bit more, I would like the submenu staying open when navigating in it’s links or pages…
Any idea on that one ?Hoping for answers,
best regards,
David aka Shapesfoof132 Friendfoof132
- Join date:
- January 2007
- Posts:
- 10
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 8
- Thanked:
- 2 times in 1 posts
February 25, 2011 at 5:26 pm #378484Hi claude_troncy,
Was your modification able to work in IE? I applied your solution and it worked great in Firefox, Safari and Chrome but the dropdowns were not displaying for me in IE 7 and 8.
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by foof132 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum