A small fix for NivoSlider Control

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/4/2012 11:36:10 AM
Gravatar
Total Posts 10

A small fix for NivoSlider Control

Just tried the new NivoSlider control, and found the Config was not working because of a string format issue in GetPageLoadScript.

Here is my fix, adding two curly brackets to make config being recognized.

private string GetPageLoadScript()
{
string script = string.Format(@"$(window).load(function () {{" +
@"$('#{0}').nivoSlider({{{1}}});}});", ClientID, config);
return script;
}

5/4/2012 2:02:20 PM
Gravatar
Total Posts 18439

Re: A small fix for NivoSlider Control

Thanks! This is now fixed in the source code repository

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.