Mercurial > public > src > rhodecode
comparison pylons_app/lib/helpers.py @ 292:c4caeca9dd66
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)
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 14 Jun 2010 00:17:08 +0200 |
parents | 237470e64bb8 |
children | 6603c9891b91 |
comparison
equal
deleted
inserted
replaced
290:0cf49c29c846 | 292:c4caeca9dd66 |
---|---|
110 autodismissdelay:300000, | 110 autodismissdelay:300000, |
111 hidedelay:5, | 111 hidedelay:5, |
112 showdelay:20, | 112 showdelay:20, |
113 }); | 113 }); |
114 | 114 |
115 //Mouse subscribe optional arguments | 115 //Mouse Over event disabled for new repositories since they dont |
116 //have last commit message | |
116 myToolTips.contextMouseOverEvent.subscribe( | 117 myToolTips.contextMouseOverEvent.subscribe( |
117 function(type, args) { | 118 function(type, args) { |
118 var context = args[0]; | 119 var context = args[0]; |
119 return true; | 120 var txt = context.getAttribute('tooltip_title'); |
121 if(txt){ | |
122 return true; | |
123 } | |
124 else{ | |
125 return false; | |
126 } | |
120 }); | 127 }); |
121 | 128 |
122 // Set the text for the tooltip just before we display it. Lazy method | 129 // Set the text for the tooltip just before we display it. Lazy method |
123 myToolTips.contextTriggerEvent.subscribe( | 130 myToolTips.contextTriggerEvent.subscribe( |
124 function(type, args) { | 131 function(type, args) { |