# HG changeset patch # User Marcin Kuzminski # Date 2010-06-13 22:17:08 # Node ID c4caeca9dd665b5a8840b65bca298b3c04ab815e # Parent 0cf49c29c846fefeb4e1a222e4b1850e9e3eaa62 fixed paragraphs wrapping for ultralong commit messages. Disabled tooltips for new repos without a last commit message. ie. when tooltip_title is empty (there is a strange bug on empty tooltip_title) diff --git a/pylons_app/lib/helpers.py b/pylons_app/lib/helpers.py --- a/pylons_app/lib/helpers.py +++ b/pylons_app/lib/helpers.py @@ -112,11 +112,18 @@ class _ToolTip(object): showdelay:20, }); - //Mouse subscribe optional arguments + //Mouse Over event disabled for new repositories since they dont + //have last commit message myToolTips.contextMouseOverEvent.subscribe( function(type, args) { var context = args[0]; - return true; + var txt = context.getAttribute('tooltip_title'); + if(txt){ + return true; + } + else{ + return false; + } }); // Set the text for the tooltip just before we display it. Lazy method diff --git a/pylons_app/templates/changelog/changelog.html b/pylons_app/templates/changelog/changelog.html --- a/pylons_app/templates/changelog/changelog.html +++ b/pylons_app/templates/changelog/changelog.html @@ -40,9 +40,8 @@
${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}
${cs.author}
- ${h.link_to(cs.message, - h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id), - title=cs.message)} + ${h.link_to(h.wrap_paragraphs(cs.message), + h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
${cs.branch}