Changeset 3372 for branches/2.2/expressoMail1_2/js/abas.js
- Timestamp:
- 10/18/10 17:48:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/abas.js
r3336 r3372 199 199 if ((children[i].nodeName === 'TD') && (children[i].id!=='border_id_0') && (children[i].id!=='border_blank')){ 200 200 children[i].style.width = newWidthTD; 201 if (children[i].title.substring(0, (newWidthTD-44)*0.14).length == children[i].title.length) 202 Element("font_"+children[i].id).innerHTML = children[i].title; 203 else 204 Element("font_"+children[i].id).innerHTML = children[i].title.substring(0, (newWidthTD-44)*0.14) + "..."; 201 set_border_caption(children[i].id, children[i].title); 205 202 } 206 203 } 207 204 return newWidthTD; 205 } 206 207 function set_border_caption(border_id, title) 208 { 209 var border = document.getElementById(border_id); 210 var border_width = border.clientWidth; 211 var caption = ""; 212 if (title.substring(0, (border_width-44)*0.14).length < title.length) 213 title = title.substring(0, (border_width-44)*0.14) + "..."; 214 Element("font_"+border.id).innerHTML = title; 215 return(title); 208 216 } 209 217
Note: See TracChangeset
for help on using the changeset viewer.