mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-22 00:00:59 +02:00
f238478cc3
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4536 6c8d7289-2bf4-0310-a012-ef5d649a1542
11 lines
776 B
JavaScript
11 lines
776 B
JavaScript
/*
|
|
* Tabs 3 extensions
|
|
*
|
|
* Copyright (c) 2007 Klaus Hartl (stilbuero.de)
|
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
|
* and GPL (GPL-LICENSE.txt) licenses.
|
|
*
|
|
* http://docs.jquery.com/UI/TabsExtensions
|
|
*/
|
|
(function($){$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){continuing=continuing||false;var self=this,t=this.options.selected;function start(){self.rotation=setInterval(function(){t=++t<self.$tabs.length?t:0;self.select(t);},ms);}function stop(e){if(!e||e.clientX){clearInterval(self.rotation);}}if(ms){start();if(!continuing)this.$tabs.bind(this.options.event,stop);else
|
|
this.$tabs.bind(this.options.event,function(){stop();t=self.options.selected;start();});}else{stop();this.$tabs.unbind(this.options.event,stop);}}});})(jQuery); |