Skip to main content

Search and Top Navigation

#7516 closed bug (notabug)

Opened June 28, 2011 03:35PM UTC

Closed June 28, 2011 03:54PM UTC

Selected Numbers seem wrong

Reported by: nstuart Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.tabs Version: 1.8.13
Keywords: Cc:
Blocked by: Blocking:
Description

when using the selected option, it seems to be off by it's documented index. The documentation says it's a zero-based index, but if I do

$("#specialEffect").tabs("option", "selected", tabLocation);

and tabLocation is 2, it sets it to the second tab, instead of a Zero-based index of the "3rd" tab. When I do a get it get's them properly(A value of 2 is the "3rd" tab), but setting it seems to not follow the convention.

Attachments (0)
Change History (3)

Changed June 28, 2011 03:36PM UTC by nstuart comment:1

_comment0: It would seem as though the system is adding one to the given setter. The documentation says that an index of -1 will make nothing selected, but when given that, it put's it on tab 0. When given -2, it presents it as none-selected.1309276299517465

Changed June 28, 2011 03:53PM UTC by nstuart comment:2

Please Ignore/Delete. The issue was due to using a string instead of an int.

Changed June 28, 2011 03:54PM UTC by scottgonzalez comment:3

resolution: → invalid
status: newclosed