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() {
|
|
|
|
opts = {collapsible: true};
|
|
|
|
if (this.hasClass("ss-toggle-start-closed")) opts.active = false;
|
2012-02-16 12:27:47 +01:00
|
|
|
|
2012-06-14 02:50:46 +02:00
|
|
|
this.accordion({ collapsible: true });
|
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);
|