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:
marcotuts
2014-02-03 16:47:27 -05:00
committed by marco
parent 70ba10433e
commit 1b4388ee08
4 changed files with 59 additions and 13 deletions

View File

@@ -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();