Needs work
Project:
Megamenu
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2012 at 23:25 UTC
Updated:
23 Jun 2015 at 10:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
imclean commentedUpdated status.
Comment #2
Anonymous (not verified) commentedComment #3
hackwater commentedThis patch helped ease a conflict between my theme's .js file and the megamenu.js file. When I used the Drupal.behaviors.theme_name to attach my Javascript and cycle through some theme items, it broke the megamenu dropdown functionality. This patch resolved the issue, letting me use Javascript in my theme and the megamenu in my nav.
I've slightly modified the original patch to follow the suggested way of managing Javascript in Drupal 7. I don't know that this counts as RTBC, but I wanted to chime in.
Comment #4
Dinesh Kumar Sarangapani commentedThere should be no new line at end of the file
Comment #5
imclean commentedThe error is stating there isn't a newline when there should be. See: http://drupal.org/node/1319154
If there isn't a newline in the original file I'm not sure this patch is the place to fix it. A separate patch to fix such coding issues in all files could be more appropriate.
Comment #6
pat redmond commentedHere is a patch which will use D7 jquery wrapper. It also uses the megamenu module name, rather than exampleModule from post #3
Now that I look at it, this is the same as the first patch from several months ago. This is ready to be committed.
If the maintainers don't have the capacity to deal with this ATM, I am happy to become a co-maintainer in order to get these patches committed.
Comment #7
Anonymous (not verified) commentedThank Pat, I've granted you write access to the repository. I appreciate your help in nocking off these minor issues that have been laying around.
Comment #8
Anonymous (not verified) commentedComment #9
pat redmond commentedHey FilmKnurd - thanks! I am planning to fix a few issues as I have a site going live shortly, and I'd love to use this module on it.
I just commited this, but I commited it to master rather than 7.x-1.x. Can you check that for me, and let me know if it is OK?
Comment #10
Anonymous (not verified) commentedOh yeah, master isn't used. You'll have to commit it to the 1.x branch.
Comment #11
pat redmond commentedOK, super. I've committed to 7.x-1.x
I notice there is a 7.x-2.x in version control, but it seems empty..?
Comment #12
Anonymous (not verified) commentedWe keep getting false starts on the over-haul. JohnAlbin was going to head up the re-write first, but then he got busy with all this responsive nonsense :-) rgarand has the re-write almost done... but hasn't posted it yet. Not sure why.
Comment #13
thekatic commentedI noticed some problems after replacing $(document).ready() with Drupal behaviors.
When using megamenu with modules or custom code that calls attachBehaviors, you will notice decrease in page performance. In my case Views exposed filters with Ajax.
So while you hitting search button, page will become slower and slower. This will happen because click actions are not unbound but instead added to the previous action.
Is this a known problem which will be fixed in 7.x-2.x?
Comment #14
ram4nd commented