Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: FreightGuy
After i posted, i decided to go back and check out a few more things, and solved the mystery. In your SpryAccordion.js file, fine the section that says:
Spry.Widget.Accordion.prototype.onPanelClick = function(panel)
{
// if (this.enableKeyboardNavigation)
// this.element.focus();
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};
This is the code to open the accordion panel when you click on it. What we're going to do is copy this part of the code:
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
And then find the section for mouseover, which is up towards the top, and paste it after the current code...it should look like this after we get done:
Spry.Widget.Accordion.prototype.onPanelTabMouseOver = function(panel)
{
if (panel)
this.addClassName(this.getPanelTab(panel), this.hoverClass);
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};
And there you have it. Save your file and go have some fun!!!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: FreightGuy
After i posted, i decided to go back and check out a few more things, and solved the mystery. In your SpryAccordion.js file, fine the section that says:
Spry.Widget.Accordion.prototype.onPanelClick = function(panel)
{
// if (this.enableKeyboardNavigation)
// this.element.focus();
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};
This is the code to open the accordion panel when you click on it. What we're going to do is copy this part of the code:
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
And then find the section for mouseover, which is up towards the top, and paste it after the current code...it should look like this after we get done:
Spry.Widget.Accordion.prototype.onPanelTabMouseOver = function(panel)
{
if (panel)
this.addClassName(this.getPanelTab(panel), this.hoverClass);
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};
And there you have it. Save your file and go have some fun!!!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: FreightGuy
After i posted, i decided to go back and check out a few more things, and solved the mystery. In your SpryAccordion.js file, fine the section that says:
Spry.Widget.Accordion.prototype.onPanelClick = function(panel)
{
// if (this.enableKeyboardNavigation)
// this.element.focus();
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};
This is the code to open the accordion panel when you click on it. What we're going to do is copy this part of the code:
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
And then find the section for mouseover, which is up towards the top, and paste it after the current code...it should look like this after we get done:
Spry.Widget.Accordion.prototype.onPanelTabMouseOver = function(panel)
{
if (panel)
this.addClassName(this.getPanelTab(panel), this.hoverClass);
if (panel != this.currentPanel)
this.openPanel(panel);
this.focus();
};
And there you have it. Save your file and go have some fun!!!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now