I can't seem to get this to work. 

I have a tab that I load a form into, submit the form via ajax and return a
view which replaces the form in the tab. So far everything works ok. I would
then like to have the possibility for the user to click on the active tab so
as to reload the form. My tabs are set up as such.

<script>
        $(function() {
                $('#staff-tab > ul').tabs({ cookie: { expires: 30 } });
        });
</script>
<div id="staff-tab"> 
        <ul> 
                <li> staff/get/current/ Current </li>
                <li> staff/get/finished/ Finished </li>
                <li> staff/get/register/  Register </li>
        </ul> 
</div> 



Klaus Hartl-4 wrote:
> 
> 
> var $tabs = $('#example').tabs({
>     select: function(e, ui) {
>         if (ui.index === $tabs.data('selected.tabs')) {
>             $tabs.tabs('load', ui.index);
>         }
>     }
> });
> 
> --Klaus
> 
> 
> On 23 Okt., 16:58, fleabo <[EMAIL PROTECTED]> wrote:
>> Is it possible to click on the selected tab so as to reload this tab?
>>
>> thanks
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Tabs---Preserve-onclick-on-selected-tab-tp20132742s27240p20322337.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to