Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG Fixed issue with cms help toggles not functioning correctly #1205

Merged
merged 2 commits into from
Mar 20, 2013
Merged

BUG Fixed issue with cms help toggles not functioning correctly #1205

merged 2 commits into from
Mar 20, 2013

Conversation

UndefinedOffset
Copy link
Contributor

Addresses issue with the custom date and custom time formatting not toggling or always displaying in SecurityAdmin.

@@ -841,16 +841,26 @@ jQuery.noConflict();
* in the href attribute (which doubles as an anchor link to that element).
*/
$('.cms .cms-help-toggle').entwine({
ToggleElement: null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make getToggleElement() use attr() each time, rather than caching it? I'm not sure on how this affects memory leaks in jQuery.entwine, but generally try to avoid setting DOMElement as instance state anywhere. Presumably the issue was that the "href" attr had the base path prepended before the anchor link?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya it was, I can have it pull the object each time the user clicks. Which your right probably would be much easier on memory.

chillu added a commit that referenced this pull request Mar 20, 2013
BUG Fixed issue with cms help toggles not functioning correctly
@chillu chillu merged commit 7401465 into silverstripe:3.0 Mar 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants