This project is read-only.
4
Vote

SolPartMenu Drop-Down Menus Broken in DNN 7.2.1

description

I recently upgraded from DNN 6.2.6 to DNN 7.2.1. I have an old skin that is still using SolPartMenu. I noticed that drop-down menus would not expand on the new skin. Firebug would catch an error whenever I attempted to expand a drop-down. The error said "n.curCSS is not a function".

After some exploration, I determined the root cause. jQuery dropped support for the $.curCSS function somewhere around version 1.8.13. Apparently curCSS was an undocumented function so they did not provide a direct upgrade path.

I fixed my own SolPartMenu.js and SolPartMenu.min.js by adding the following function:
$.curCSS = function (element, attrib, val) {
    $(element).css(attrib, val);
};
This should be added to the official source code. It will not break old versions of jQuery, and it will fix compatibility with all new versions.

comments

klawry wrote Feb 11, 2014 at 9:28 PM

On another note, the non-minified version (SolPartMenu.js) seems to be a very different version than the referenced version (SolPartMenu.min.js). It would be nice for this file to be updated in case future issues need to be debugged.

mainmind83 wrote Apr 2, 2014 at 6:16 PM

Yes, this fix its working. Same problema, same versión to migrate
Great work!

wrote Apr 2, 2014 at 6:16 PM

vangor wrote Apr 30, 2014 at 10:28 PM

Thanks for the tip! It worked for me!

For anyone else that isn't comfortable dealing with jQuery, let alone minified jQuery, here's is specifically what worked in my case:
  • Edit \DesktopModules\DDRMenu\SolPart\SolPartMenu.min.js with NotePad++ (or other text editor)
  • Append the following line of code to the very beginning of the file:
    $.curCSS = function (element, attrib, val) {$(element).css(attrib, val);};
Save your changes, and that's it.

See Ya!
Van

RegGFX wrote Dec 17, 2014 at 9:54 PM

I ran into the exact same Menu Issue after Upgrade with an older DNN site using the old dreaded and feared Solpart menu where I upgraded to DNN 7.3.4. Thanks to a Google Search, led me here!

Thank you for simplifying your solution!
The simplified instructions and fix WORKED!!!!

Quick! Easy! Done!

Thank You!

Cheers!

wrote Dec 17, 2014 at 9:55 PM

wrote Oct 16, 2015 at 3:22 PM

sjcmp wrote Oct 16, 2015 at 3:25 PM

How can this fix be added to the files on GitHub?