Changeset 3882:254f3929b2c4 for admin/js
- Timestamp:
- 09/19/18 10:11:05 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/common.js
r3881 r3882 525 525 if (!opt.remove && opt.value !== null) { 526 526 // Compose badge classes 527 const cls = `badge badge-${opt.id} ${opt.inline ? 'badge-inline' : 'badge-block'}${opt.icon ? ' badge-icon' : ''}${opt.type !== '' ? ` badge-${opt.type}` : ''}${opt.left ? ' badge-left' : ''}${opt.noborder ? ' badge-noborder' : ''}${opt.small ? ' badge-small' : ''}${opt.classes !== '' ? ` ${opt.classes}` : ''}`; 527 const cls = `badge badge-${opt.id} \ 528 ${opt.inline ? 'badge-inline' : 'badge-block'}\ 529 ${opt.icon ? ' badge-icon' : ''}\ 530 ${opt.type !== '' ? ` badge-${opt.type}` : ''}\ 531 ${opt.left ? ' badge-left' : ''}\ 532 ${opt.noborder ? ' badge-noborder' : ''}\ 533 ${opt.small ? ' badge-small' : ''}\ 534 ${opt.classes !== '' ? ` ${opt.classes}` : ''}`; 528 535 // Compose badge 529 536 const xml = `<span class="${cls}" aria-hidden="true">${opt.value}</span>`;
Note: See TracChangeset
for help on using the changeset viewer.