##// END OF EJS Templates
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)
marcink -
r284:c4caeca9 default
parent child Browse files
Show More
@@ -112,11 +112,18 b' class _ToolTip(object):'
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
@@ -40,9 +40,8 b''
40 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
40 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
41 <div class="author">${cs.author}</div>
41 <div class="author">${cs.author}</div>
42 <div id="chg_${cnt}" class="message">
42 <div id="chg_${cnt}" class="message">
43 ${h.link_to(cs.message,
43 ${h.link_to(h.wrap_paragraphs(cs.message),
44 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
44 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
45 title=cs.message)}
46 </div>
45 </div>
47 <span class="logtags">
46 <span class="logtags">
48 <span class="branchtag">${cs.branch}</span>
47 <span class="branchtag">${cs.branch}</span>
General Comments 0
You need to be logged in to leave comments. Login now