|
|
|
|
489
|
newElement.addClass('r_operate');
|
489
|
newElement.addClass('r_operate');
|
490
|
|
490
|
|
491
|
var uniqueIdForLabel = inputResource.displayvalue.replace('.', '') // remove the point so jquery doesn't consider it as 2 differents classes when used in a selector
|
491
|
var uniqueIdForLabel = inputResource.displayvalue.replace('.', '') // remove the point so jquery doesn't consider it as 2 differents classes when used in a selector
|
|
|
492
|
+ // Côme - 2018/03/19 - added custom style to avoid the '...' for long workspace name that hide the entire name
|
|
|
493
|
+ var customStyle = 'display: inline-block;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;vertical-align: top;width: 80%;'
|
492
|
newElement.html("\
|
494
|
newElement.html("\
|
493
|
<div class='resourceCalDAVColor' style='background:"+inputResource.ecolor+"'></div>\
|
495
|
<div class='resourceCalDAVColor' style='background:"+inputResource.ecolor+"'></div>\
|
494
|
<input type='text' class='colorPicker'/>\
|
496
|
<input type='text' class='colorPicker'/>\
|
495
|
<input type='checkbox' name="+inputResource.uid+" />\
|
497
|
<input type='checkbox' name="+inputResource.uid+" />\
|
496
|
- <div class='"+uniqueIdForLabel+"' style='display:inline-block'>"+inputResource.displayvalue+"</div>");
|
|
|
|
|
498
|
+ <div class='"+uniqueIdForLabel+"' style='"+customStyle+"'>"+inputResource.displayvalue+"</div>");
|
497
|
|
499
|
|
498
|
// +$('<div/>').text(inputResource.displayvalue).html()); // legacy code
|
500
|
// +$('<div/>').text(inputResource.displayvalue).html()); // legacy code
|
499
|
$.ajax({
|
501
|
$.ajax({
|