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() {
|
2014-07-14 01:15:38 +02:00
|
|
|
this._super();
|
|
|
|
|
2012-07-15 20:53:33 +02:00
|
|
|
this.accordion({
|
|
|
|
collapsible: true,
|
2012-12-19 08:22:37 +01:00
|
|
|
active: (this.hasClass("ss-toggle-start-closed")) ? false : 0
|
2012-07-15 20:53:33 +02:00
|
|
|
});
|
2012-06-14 02:50:46 +02:00
|
|
|
},
|
|
|
|
onremove: function() {
|
2014-07-14 01:15:38 +02:00
|
|
|
if (this.data('accordion')) this.accordion('destroy');
|
|
|
|
this._super();
|
2012-06-14 02:50:46 +02:00
|
|
|
},
|
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);
|