updated container header styling and exposed sidebar back to its location. includes some javascript to render tooltips on overflowed text headers
This commit is contained in:
@@ -66,6 +66,9 @@ domReady(function() {
|
||||
}
|
||||
});
|
||||
|
||||
// container navigation links - tooltips on overflow
|
||||
$('a.navigation-link').bind('mouseenter', overflowTooltip);
|
||||
|
||||
// general link management - new window/tab
|
||||
$('a[rel="external"]').attr('title', gettext('This link will open in a new browser window/tab')).bind('click', linkNewWindow);
|
||||
|
||||
@@ -117,6 +120,12 @@ domReady(function() {
|
||||
IframeUtils.iframeBinding();
|
||||
});
|
||||
|
||||
function overflowTooltip(e) {
|
||||
(e).preventDefault();
|
||||
if ($(this).offsetWidth < this.scrollWidth && !this.attr('data-tooltip'))
|
||||
$this.attr('data-tooltip', $this.text());
|
||||
}
|
||||
|
||||
function smoothScrollLink(e) {
|
||||
(e).preventDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user