shorten too long submenus in the middle of the string
Costa Tsaousis (ktsaou) committed
Sep 3, 2016 at 17:54 UTC
4e2ee3af15c5e48a6e071658af0f3640225a9ba5
1 file changed
+3
-3
web/index.html
+3
-3
@@ -2090,9 +2090,9 @@ function submenuTitle(menu, submenu) {
2090
var key = menu + '.' + submenu;
2091
var title = anyAttribute(submenuData, 'title', key, submenu).toString().replace(/_/g, ' ');;
2092
if(title.length > 28) {
2093
- var a = title.substring(0, 28);
2094
- // var b = title.substring(title.length - 13, title.length);
2095
- return a + '...'; // + b;
2093
+ var a = title.substring(0, 13);
2094
+ var b = title.substring(title.length - 12, title.length);
2095
+ return a + '...' + b;
2096
}
2097
return title;
2098
}