mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-27 22:24:12 +01:00
- Manage lib through NPM - Move portal / Bootstrap files back to the itop-portal-base module (not managed through NPM yet) - Fix SCSS classes for the backoffice as it was based on the bootstrap CSS classes which are not there anymore Note: jQuery is included as a dependency, will check with the team if we can force it not to be retrieved
31 lines
819 B
JavaScript
31 lines
819 B
JavaScript
define( [
|
|
"./support"
|
|
], function( support ) {
|
|
|
|
"use strict";
|
|
|
|
// We have to close these tags to support XHTML (#13200)
|
|
var wrapMap = {
|
|
|
|
// XHTML parsers do not magically insert elements in the
|
|
// same way that tag soup parsers do. So we cannot shorten
|
|
// this by omitting <tbody> or other required elements.
|
|
thead: [ 1, "<table>", "</table>" ],
|
|
col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
|
|
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
|
|
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
|
|
|
|
_default: [ 0, "", "" ]
|
|
};
|
|
|
|
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
|
|
wrapMap.th = wrapMap.td;
|
|
|
|
// Support: IE <=9 only
|
|
if ( !support.option ) {
|
|
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
|
|
}
|
|
|
|
return wrapMap;
|
|
} );
|