Patch #15073 » RM_15073_list_custom_field_filter_wider_V2.3.2.diff
| public/javascripts/application.js (copie de travail) | ||
|---|---|---|
| 280 | 280 |
function toggleMultiSelect(el) {
|
| 281 | 281 |
if (el.attr('multiple')) {
|
| 282 | 282 |
el.removeAttr('multiple');
|
| 283 |
// Smile specific : Filter length of values list increased |
|
| 284 |
el.attr('size', 1);
|
|
| 283 | 285 |
} else {
|
| 284 | 286 |
el.attr('multiple', true);
|
| 287 |
// Smile specific : Filter length of values list increased |
|
| 288 |
if (el.children().length > 10) |
|
| 289 |
el.attr('size', 10);
|
|
| 290 |
else |
|
| 291 |
el.attr('size', 4);
|
|
| 285 | 292 |
} |
| 286 | 293 |
} |
| 287 | 294 | |