# HG changeset patch # User Marcin Kuzminski # Date 1276467428 -7200 # 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 -r 0cf49c29c846 -r c4caeca9dd66 pylons_app/lib/helpers.py --- a/pylons_app/lib/helpers.py Sun Jun 13 23:56:33 2010 +0200 +++ b/pylons_app/lib/helpers.py Mon Jun 14 00:17:08 2010 +0200 @@ -112,11 +112,18 @@ 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 -r 0cf49c29c846 -r c4caeca9dd66 pylons_app/templates/changelog/changelog.html --- a/pylons_app/templates/changelog/changelog.html Sun Jun 13 23:56:33 2010 +0200 +++ b/pylons_app/templates/changelog/changelog.html Mon Jun 14 00:17:08 2010 +0200 @@ -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}