Revision 9c87f9a9 ui/static/synnefo.js
b/ui/static/synnefo.js | ||
---|---|---|
2411 | 2411 |
}); |
2412 | 2412 |
} |
2413 | 2413 |
|
2414 |
function fix_server_name(str, limit, append) { |
|
2415 |
limit = limit || 30; |
|
2416 |
append = append || "..."; |
|
2417 |
|
|
2418 |
if (str.length > limit) { |
|
2419 |
str = str.substring(0,limit-append.length) + append; |
|
2420 |
} |
|
2421 |
return str; |
|
2422 |
} |
Also available in: Unified diff