|
Title: Recognize closable, not active, tab in 'onClose' event Post by: Rimokas on November 23, 2014, 02:17:09 AM Hi,
I'm trying this excelent library. In tabs panels I'm loading html pages with ajax . All is working OK. Don't know how to recognize which tabs I'm closing in 'onClose' event then tab isn't active. Let say that I created 3 closable tabs and the last is active . And then I'm clicking on the first, not active, tab's close button. Don't know how to recognize that this is the first tab in 'onClose' event ... :( Thanks in advance ! Title: Re: Recognize closable, not active, tab in 'onClose' event Post by: Rimokas on November 23, 2014, 02:34:22 AM OK, found that ... :)
Code: $( '#mTab' ).tabs( At first I didn't noticed that 'onBeforeClose' is receiving index. Works fine ! ;D |