Opened 9 years ago

Closed 9 years ago

#10557 closed bug (worksforme)

Toggle use ShowOrHide option from jQuery

Reported by: n3ssi3 Owned by: n3ssi3
Priority: minor Milestone: none
Component: ui.effects.core Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery.toggle provides you with the option to pass a boolean to show or hide an element. http://api.jquery.com/toggle/#toggle-showOrHide

jQuery UI overwrites toggle and ignores my boolean http://api.jqueryui.com/toggle/

When I run toggle in the console with jQuery UI in the project .toggle(false) actually works, but .toggle(true) doesn't:

body.toggle(false) [<body>​…​</body>​] body.toggle(true) null

Change History (3)

comment:1 Changed 9 years ago by tj.vantoll

Owner: set to n3ssi3
Status: newpending

Hi n3ssl3,

Thanks for taking the time to contribute to jQuery UI. Could you create a test case that shows this behavior? This is working fine for me in basic examples: http://jsfiddle.net/tj_vantoll/9kxxcrgu/.

comment:2 Changed 9 years ago by n3ssi3

Status: pendingnew

I am not able to create a jsfiddle that causes this problem. I guess this only happens on the version the client has installed.

-> Please close this ticket

Thank you

comment:3 Changed 9 years ago by Scott González

Component: ui.coreui.effects.core
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.