2012-06-13 06:20:07 +02:00
|
|
|
(function($){
|
|
|
|
$.entwine('ss', function($){
|
|
|
|
$('.ss-toggle').entwine({
|
2012-06-14 02:50:46 +02:00
|
|
|
onadd: function() {
|
2012-07-15 20:53:33 +02:00
|
|
|
this.accordion({
|
|
|
|
collapsible: true,
|
|
|
|
active: !this.hasClass("ss-toggle-start-closed")
|
|
|
|
});
|
2012-06-13 06:20:07 +02:00
|
|
|
|
2012-06-14 02:50:46 +02:00
|
|
|
this._super();
|
|
|
|
},
|
|
|
|
onremove: function() {
|
|
|
|
this.accordion('destroy');
|
|
|
|
},
|
2012-06-13 06:20:07 +02:00
|
|
|
|
2012-06-14 02:50:46 +02:00
|
|
|
getTabSet: function() {
|
|
|
|
return this.closest(".ss-tabset");
|
2012-06-13 06:20:07 +02:00
|
|
|
},
|
2012-06-14 02:50:46 +02:00
|
|
|
|
|
|
|
fromTabSet: {
|
|
|
|
ontabsshow: function() {
|
|
|
|
this.accordion("resize");
|
|
|
|
}
|
2012-06-13 06:20:07 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})(jQuery);
|