toggle_active : function (e, self) {
var $this = $(this),
section = $this.closest('section, .section'),
- title = section.find('.title'),
content = section.find('.content'),
parent = section.closest('[data-section]'),
self = Foundation.libs.section;
}
section.addClass('active');
-
- if (self.is_horizontal(parent))
- content.css({left: title.position().left, top: title.outerHeight()});
}
self.settings.callback();
active_section.css('padding-top', self.outerHeight(active_section.find('.title')) - 1);
}
self.position_titles($this);
+
+ if (self.is_horizontal($this)) {
+ self.position_content($this);
+ }
});
},
}
},
+ position_content : function (section, off) {
+ var title = section.find('.title'),
+ content = section.find('.content');
+
+ if (typeof off === 'boolean') {
+ content.attr('style', '');
+ } else {
+ content.css({left: title.position().left, top: title.outerHeight()});
+ }
+ },
+
small : function (el) {
if (el && this.is_accordion(el)) {
return true;