Dotclear

Changeset 3882:254f3929b2c4 for admin/js


Ignore:
Timestamp:
09/19/18 10:11:05 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Actually the minifier did not like the template strings, so one step back (see rev [3881]) and fix the minifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3881 r3882  
    525525    if (!opt.remove && opt.value !== null) { 
    526526      // 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}` : ''}`; 
    528535      // Compose badge 
    529536      const xml = `<span class="${cls}" aria-hidden="true">${opt.value}</span>`; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map