Bit Late here, but I am experiencing the exact same problem: call remove() on two consecutive occasions and the tab state seems to be lost. The index is always -1 and any events that are bound are lost. I tried reattaching them by calling $tabs.tab() again to no avail...yet clicking on another tab and back to the tab sets the state back to normal.
I checked on the ticket (4403) and didn't see any activity. Any insight/hints into a resolution or workaround for this? Thanks, Jeff On Mar 26, 5:05 am, rockwild <[email protected]> wrote: > Sure, no problem. The ticket # is 4403. > > -Rob > > On Mar 26, 4:05 am, Klaus Hartl <[email protected]> wrote: > > > Thanks for the demo. Would you mind creating a ticket? > > > --Klaus > > > On 20 Mrz., 22:48, rockwild <[email protected]> wrote: > > > > Hi Klaus, > > > Thanks for looking into this. I have set up a rough demo > > > athttp://games4moola.com/portalpage.cfm. Just use the delete link to > > > delete the firsttaband then try to delete the secondtab. You can > > > also try clicking the secondtabthen going back to the first and > > > deleting them (which works for me) and if you get them both deleted, > > > hit the "+"tabto add two more and try to delete those and the same > > >issuewill happen. > > > > On Mar 20, 2:11 pm, Klaus Hartl <[email protected]> wrote: > > > > > I just tested and cannot really reproduce this bug. Could you create a > > > > JSBin or other online accessible demo? > > > > > --Klaus > > > > > On 20 Mrz., 15:58, rockwild <[email protected]> wrote: > > > > > > I just wanted to add a little more information. I changed the index to > > > > > the new way of: tabsEl.tabs("option", "selected"); and am still > > > > > getting the same results. I am using jQuery 1.3.2 and jQueryUI 1.7. > > > > > The tabs are also sortable, but the problem still exists when the tabs > > > > > are not made sortable. I am loading thetabcontent remotely and > > > > > noticed that I don't appear to have anissueas long as I select > > > > > anothertaband then go back to thetabI am trying to delete before > > > > > deleting it. I tried using the .index() method to find the correct > > > > > index, but this does not work if the tabs have been rearranged. > > > > > > Thanks again for any help! > > > > > > On Mar 19, 3:36 pm, rockwild <[email protected]> wrote: > > > > > > > I just recently started using jQuery so I wanted to ask about this > > > > > > before reporting it as a bug. It appears that occasionally when atab > > > > > > is deleted using $("#example").tabs("remove", index) the > > > > > > selected.tabs > > > > > > property in data is set to -1. This makes any operations done after > > > > > > thedeletionthat require the selectedtab'sindex not work when using > > > > > > the recommended way of getting the currently selectedtabindex: $ > > > > > > ("#tab_element").data("selected.tabs");. I tried setting the > > > > > > selected.tabs value in the "show" callback function, but that didn't > > > > > > seem to change anything. Here is the function I am using to delete > > > > > > tabs: > > > > > > > function deleteTab(){ > > > > > > var tabEl = $j(".ui-tabs-selected"); > > > > > > var tabsEl = $j("#tabs"); > > > > > > if(confirm('Are you sure you want to delete the "' > > > > > > + tabEl.find > > > > > > ("span").html() + '"tab?')){ > > > > > > tabsEl.tabs("remove", > > > > > > tabsEl.data("selected.tabs")); > > > > > > } > > > > > > } > > > > > > > Thank you for any help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
