Skip to content

Commit

Permalink
Fix for accordion (active option throwing JS error)
Browse files Browse the repository at this point in the history
The accordion "active" option wasn't rendering the correct JS.
  • Loading branch information
Franz Junge committed Aug 21, 2013
1 parent 41d11ed commit 2d57737
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Fluqi.Tests/Accordion/AccordionTests-Methods.cs
Expand Up @@ -79,7 +79,7 @@ public void Ensure_Activate_Method_Renders_Correctly()
string html = resp.Output.ToString();

// Assert
Assert.AreEqual("$(\"#myAccordion\").accordion(\"active\",2)", html);
Assert.AreEqual("$(\"#myAccordion\").accordion(\"option\",\"active\",2)", html);
}

[TestMethod]
Expand All @@ -96,7 +96,7 @@ public void Ensure_Select_Method_Renders_Correctly()

// Assert - Note the "Select" method is the same as the "Activate" method and is merely
// present in the API as it's arguably more discoverable than "Activate".
Assert.AreEqual("$(\"#myAccordion\").accordion(\"active\",2)", html);
Assert.AreEqual("$(\"#myAccordion\").accordion(\"option\",\"active\",2)", html);
}

[TestMethod]
Expand Down
2 changes: 1 addition & 1 deletion Fluqi/Widget/jAccordion/Methods/Methods.cs
Expand Up @@ -32,7 +32,7 @@ public Methods(Accordion ac)
/// </summary>
/// <remarks>See http://api.jqueryui.com/accordion/#option-active for details</remarks>
public void Active(int panelIndex) {
this.RenderMethodCall("active", panelIndex);
this.RenderSetOptionCall("active", panelIndex);
}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion Fluqi/obj/Debug/Fluqi.csproj.FileListAbsolute.txt
Expand Up @@ -30,4 +30,3 @@ C:\Dropbox\Git\repo\Fluqi\Fluqi\bin\Debug\Fluqi.pdb
C:\Dropbox\Git\repo\Fluqi\Fluqi\obj\Debug\Fluqi.csprojResolveAssemblyReference.cache
C:\Dropbox\Git\repo\Fluqi\Fluqi\obj\Debug\Fluqi.dll
C:\Dropbox\Git\repo\Fluqi\Fluqi\obj\Debug\Fluqi.pdb
C:\Dropbox\Git\repo\Fluqi\Fluqi\bin\Debug\Fluqi.XML

0 comments on commit 2d57737

Please sign in to comment.