d6052621 by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 75452d6d
......@@ -7444,7 +7444,7 @@
// DataTables code uses $ internally, but we want to be able to
// reassign $ with the `use` method, so it is a regular var.
var $$2 = jquery__default["default"];
var $$1 = jquery__default["default"];
var DataTable = function (selector, options) {
// Check if called with a window or jQuery object for DOM less applications
// This is for backwards compatibility
......@@ -7454,7 +7454,7 @@
// When creating with `new`, create a new DataTable, returning the API instance
if (this instanceof DataTable) {
return $$2(selector).DataTable(options);
return $$1(selector).DataTable(options);
} else {
// Argument switching
options = selector;
......@@ -7607,7 +7607,7 @@
var api = this.api(true);
/* Check if we want to add multiple rows or not */
var rows = Array.isArray(data) && (Array.isArray(data[0]) || $$2.isPlainObject(data[0])) ? api.rows.add(data) : api.row.add(data);
var rows = Array.isArray(data) && (Array.isArray(data[0]) || $$1.isPlainObject(data[0])) ? api.rows.add(data) : api.row.add(data);
if (redraw === undefined || redraw) {
api.draw();
}
......@@ -8155,7 +8155,7 @@
var sId = this.getAttribute('id');
var bInitHandedOff = false;
var defaults = DataTable.defaults;
var $this = $$2(this);
var $this = $$1(this);
/* Sanity check */
if (this.nodeName.toLowerCase() != 'table') {
......@@ -8172,7 +8172,7 @@
_fnCamelToHungarian(defaults.column, defaults.column, true);
/* Setting up the initialisation object */
_fnCamelToHungarian(defaults, $$2.extend(oInit, $this.data()), true);
_fnCamelToHungarian(defaults, $$1.extend(oInit, $this.data()), true);
/* Check to see if we are re-initialising a table */
var allSettings = DataTable.settings;
......@@ -8212,7 +8212,7 @@
}
/* Create the settings object for this table and set some of the default parameters */
var oSettings = $$2.extend(true, {}, DataTable.models.oSettings, {
var oSettings = $$1.extend(true, {}, DataTable.models.oSettings, {
"sDestroyWidth": $this[0].style.width,
"sInstance": sId,
"sTableId": sId
......@@ -8237,7 +8237,7 @@
// Apply the defaults and init options to make a single init object will all
// options defined from defaults and instance options.
oInit = _fnExtend($$2.extend(true, {}, defaults), oInit);
oInit = _fnExtend($$1.extend(true, {}, defaults), oInit);
// Map the initialisation options onto the settings object
_fnMap(oSettings.oFeatures, oInit, ["bPaginate", "bLengthChange", "bFilter", "bSort", "bSortMulti", "bInfo", "bProcessing", "bAutoWidth", "bSortClasses", "bServerSide", "bDeferRender"]);
......@@ -8264,7 +8264,7 @@
/* Browser support detection */
_fnBrowserDetect(oSettings);
var oClasses = oSettings.oClasses;
$$2.extend(oClasses, DataTable.ext.classes, oInit.oClasses);
$$1.extend(oClasses, DataTable.ext.classes, oInit.oClasses);
$this.addClass(oClasses.sTable);
if (oSettings.iInitDisplayStart === undefined) {
/* Display start point, taking into account the save saving */
......@@ -8280,19 +8280,19 @@
/* Language definitions */
var oLanguage = oSettings.oLanguage;
$$2.extend(true, oLanguage, oInit.oLanguage);
$$1.extend(true, oLanguage, oInit.oLanguage);
if (oLanguage.sUrl) {
/* Get the language definitions from a file - because this Ajax call makes the language
* get async to the remainder of this function we use bInitHandedOff to indicate that
* _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
*/
$$2.ajax({
$$1.ajax({
dataType: 'json',
url: oLanguage.sUrl,
success: function (json) {
_fnCamelToHungarian(defaults.oLanguage, json);
_fnLanguageCompat(json);
$$2.extend(true, oLanguage, json, oSettings.oInit.oLanguage);
$$1.extend(true, oLanguage, json, oSettings.oInit.oLanguage);
_fnCallbackFire(oSettings, null, 'i18n', [oSettings]);
_fnInitialise(oSettings);
},
......@@ -8316,10 +8316,10 @@
/* Remove row stripe classes if they are already on the table row */
var stripeClasses = oSettings.asStripeClasses;
var rowOne = $this.children('tbody').find('tr').eq(0);
if ($$2.inArray(true, $$2.map(stripeClasses, function (el, i) {
if ($$1.inArray(true, $$1.map(stripeClasses, function (el, i) {
return rowOne.hasClass(el);
})) !== -1) {
$$2('tbody tr', this).removeClass(stripeClasses.join(' '));
$$1('tbody tr', this).removeClass(stripeClasses.join(' '));
oSettings.asDestroyStripes = stripeClasses.slice();
}
......@@ -8362,7 +8362,7 @@
var a = function (cell, name) {
return cell.getAttribute('data-' + name) !== null ? name : null;
};
$$2(rowOne[0]).children('th, td').each(function (i, cell) {
$$1(rowOne[0]).children('th, td').each(function (i, cell) {
var col = oSettings.aoColumns[i];
if (!col) {
_fnLog(oSettings, 0, 'Incorrect column count', 18);
......@@ -8408,7 +8408,7 @@
if (oSettings.bSorted) {
var aSort = _fnSortFlatten(oSettings);
var sortedColumns = {};
$$2.each(aSort, function (i, val) {
$$1.each(aSort, function (i, val) {
sortedColumns[val.src] = val.dir;
});
_fnCallbackFire(oSettings, null, 'order', [oSettings, aSort, sortedColumns]);
......@@ -8429,23 +8429,23 @@
// Work around for Webkit bug 83867 - store the caption-side before removing from doc
var captions = $this.children('caption').each(function () {
this._captionSide = $$2(this).css('caption-side');
this._captionSide = $$1(this).css('caption-side');
});
var thead = $this.children('thead');
if (thead.length === 0) {
thead = $$2('<thead/>').appendTo($this);
thead = $$1('<thead/>').appendTo($this);
}
oSettings.nTHead = thead[0];
var tbody = $this.children('tbody');
if (tbody.length === 0) {
tbody = $$2('<tbody/>').insertAfter(thead);
tbody = $$1('<tbody/>').insertAfter(thead);
}
oSettings.nTBody = tbody[0];
var tfoot = $this.children('tfoot');
if (tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "")) {
// If we are a scrolling table, and no footer has been given, then we need to create
// a tfoot element for the caption element to be appended to
tfoot = $$2('<tfoot/>').appendTo($this);
tfoot = $$1('<tfoot/>').appendTo($this);
}
if (tfoot.length === 0 || tfoot.children().length === 0) {
$this.addClass(oClasses.sNoFooter);
......@@ -8464,7 +8464,7 @@
* source since there is no point in reading the DOM data if we are then going
* to replace it with Ajax data
*/
_fnAddTr(oSettings, $$2(oSettings.nTBody).children('tr'));
_fnAddTr(oSettings, $$1(oSettings.nTBody).children('tr'));
}
/* Copy the data index array */
......@@ -8817,7 +8817,7 @@
* @returns Write function
*/
set: function (source) {
if ($$2.isPlainObject(source)) {
if ($$1.isPlainObject(source)) {
/* Unlike get, only the underscore (global) option is used for for
* setting data since we don't know the type here. This is why an object
* option is not documented for `mData` (which is read/write), but it is
......@@ -8915,10 +8915,10 @@
* @returns Value read
*/
get: function (source) {
if ($$2.isPlainObject(source)) {
if ($$1.isPlainObject(source)) {
// Build an object of get functions, and wrap them in a single call
var o = {};
$$2.each(source, function (key, val) {
$$1.each(source, function (key, val) {
if (val) {
o[key] = DataTable.util.get(val);
}
......@@ -9023,7 +9023,7 @@
match,
newKey,
map = {};
$$2.each(o, function (key, val) {
$$1.each(o, function (key, val) {
match = key.match(/^([^A-Z]+?)([A-Z])/);
if (match && hungarian.indexOf(match[1] + ' ') !== -1) {
newKey = key.replace(match[0], match[2].toLowerCase());
......@@ -9052,7 +9052,7 @@
_fnHungarianMap(src);
}
var hungarianKey;
$$2.each(user, function (key, val) {
$$1.each(user, function (key, val) {
hungarianKey = src._hungarianMap[key];
if (hungarianKey !== undefined && (force || user[hungarianKey] === undefined)) {
// For objects, we need to buzz down into the object to copy parameters
......@@ -9061,7 +9061,7 @@
if (!user[hungarianKey]) {
user[hungarianKey] = {};
}
$$2.extend(true, user[hungarianKey], user[key]);
$$1.extend(true, user[hungarianKey], user[key]);
_fnCamelToHungarian(src[hungarianKey], user[hungarianKey], force);
} else {
user[hungarianKey] = user[key];
......@@ -9195,21 +9195,21 @@
DataTable.__browser = browser;
// Scrolling feature / quirks detection
var n = $$2('<div/>').css({
var n = $$1('<div/>').css({
position: 'fixed',
top: 0,
left: $$2(window).scrollLeft() * -1,
left: $$1(window).scrollLeft() * -1,
// allow for scrolling
height: 1,
width: 1,
overflow: 'hidden'
}).append($$2('<div/>').css({
}).append($$1('<div/>').css({
position: 'absolute',
top: 1,
left: 1,
width: 100,
overflow: 'scroll'
}).append($$2('<div/>').css({
}).append($$1('<div/>').css({
width: '100%',
height: 10
}))).appendTo('body');
......@@ -9242,7 +9242,7 @@
browser.bBounding = n[0].getBoundingClientRect().width ? true : false;
n.remove();
}
$$2.extend(settings.oBrowser, DataTable.__browser);
$$1.extend(settings.oBrowser, DataTable.__browser);
settings.oScroll.iBarWidth = DataTable.__browser.barWidth;
}
......@@ -9281,7 +9281,7 @@
// Add column to aoColumns array
var oDefaults = DataTable.defaults.column;
var iCol = oSettings.aoColumns.length;
var oCol = $$2.extend({}, DataTable.models.oColumn, oDefaults, {
var oCol = $$1.extend({}, DataTable.models.oColumn, oDefaults, {
"nTh": nTh ? nTh : document.createElement('th'),
"sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
"aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
......@@ -9294,10 +9294,10 @@
// passed into extend can be undefined. This allows the user to give a default
// with only some of the parameters defined, and also not give a default
var searchCols = oSettings.aoPreSearchCols;
searchCols[iCol] = $$2.extend({}, DataTable.models.oSearch, searchCols[iCol]);
searchCols[iCol] = $$1.extend({}, DataTable.models.oSearch, searchCols[iCol]);
// Use the default column options function to initialise classes etc
_fnColumnOptions(oSettings, iCol, $$2(nTh).data());
_fnColumnOptions(oSettings, iCol, $$1(nTh).data());
}
/**
......@@ -9310,7 +9310,7 @@
function _fnColumnOptions(oSettings, iCol, oOptions) {
var oCol = oSettings.aoColumns[iCol];
var oClasses = oSettings.oClasses;
var th = $$2(oCol.nTh);
var th = $$1(oCol.nTh);
// Try to get width information from the DOM. We can't get it from CSS
// as we'd need to parse the CSS stylesheet. `width` option can override
......@@ -9350,7 +9350,7 @@
th.addClass(oOptions.sClass);
}
var origClass = oCol.sClass;
$$2.extend(oCol, oOptions);
$$1.extend(oCol, oOptions);
_fnMap(oCol, oOptions, "sWidth", "sWidthOrig");
// Merge class from previously defined classes with this one, rather than just
......@@ -9375,7 +9375,7 @@
var attrTest = function (src) {
return typeof src === 'string' && src.indexOf('@') !== -1;
};
oCol._bAttrSrc = $$2.isPlainObject(mDataSrc) && (attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter));
oCol._bAttrSrc = $$1.isPlainObject(mDataSrc) && (attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter));
oCol._setter = null;
oCol.fnGetData = function (rowData, type, meta) {
var innerData = mData(rowData, type, undefined, meta);
......@@ -9398,8 +9398,8 @@
}
/* Check that the class assignment is correct for sorting */
var bAsc = $$2.inArray('asc', oCol.asSorting) !== -1;
var bDesc = $$2.inArray('desc', oCol.asSorting) !== -1;
var bAsc = $$1.inArray('asc', oCol.asSorting) !== -1;
var bDesc = $$1.inArray('desc', oCol.asSorting) !== -1;
if (!oCol.bSortable || !bAsc && !bDesc) {
oCol.sSortingClass = oClasses.sSortableNone;
oCol.sSortingClassJUI = "";
......@@ -9460,7 +9460,7 @@
*/
function _fnColumnIndexToVisible(oSettings, iMatch) {
var aiVis = _fnGetColumns(oSettings, 'bVisible');
var iPos = $$2.inArray(iMatch, aiVis);
var iPos = $$1.inArray(iMatch, aiVis);
return iPos !== -1 ? iPos : null;
}
......@@ -9474,8 +9474,8 @@
var vis = 0;
// No reduce in IE8, use a loop for now
$$2.each(oSettings.aoColumns, function (i, col) {
if (col.bVisible && $$2(col.nTh).css('display') !== 'none') {
$$1.each(oSettings.aoColumns, function (i, col) {
if (col.bVisible && $$1(col.nTh).css('display') !== 'none') {
vis++;
}
});
......@@ -9492,7 +9492,7 @@
*/
function _fnGetColumns(oSettings, sParam) {
var a = [];
$$2.map(oSettings.aoColumns, function (val, i) {
$$1.map(oSettings.aoColumns, function (val, i) {
if (val[sParam]) {
a.push(i);
}
......@@ -9602,7 +9602,7 @@
} else if (typeof aTargets[j] === 'string') {
/* Class name matching on TH element */
for (k = 0, kLen = columns.length; k < kLen; k++) {
if (aTargets[j] == "_all" || $$2(columns[k].nTh).hasClass(aTargets[j])) {
if (aTargets[j] == "_all" || $$1(columns[k].nTh).hasClass(aTargets[j])) {
fn(k, def);
}
}
......@@ -9635,7 +9635,7 @@
function _fnAddData(oSettings, aDataIn, nTr, anTds) {
/* Create the object for storing information about this new row */
var iRow = oSettings.aoData.length;
var oData = $$2.extend(true, {}, DataTable.models.oRow, {
var oData = $$1.extend(true, {}, DataTable.models.oRow, {
src: nTr ? 'dom' : 'data',
idx: iRow
});
......@@ -9676,8 +9676,8 @@
var row;
// Allow an individual node to be passed in
if (!(trs instanceof $$2)) {
trs = $$2(trs);
if (!(trs instanceof $$1)) {
trs = $$1(trs);
}
return trs.map(function (i, el) {
row = _fnGetRowElements(settings, el);
......@@ -9705,7 +9705,7 @@
* @memberof DataTable#oApi
*/
function _fnNodeToColumnIndex(oSettings, iRow, n) {
return $$2.inArray(n, oSettings.aoData[iRow].anCells);
return $$1.inArray(n, oSettings.aoData[iRow].anCells);
}
/**
......@@ -9789,7 +9789,7 @@
* @return {array} Split string
*/
function _fnSplitObjNotation(str) {
return $$2.map(str.match(/(\\.|[^\.])+/g) || [''], function (s) {
return $$1.map(str.match(/(\\.|[^\.])+/g) || [''], function (s) {
return s.replace(/\\\./g, '.');
});
}
......@@ -10068,7 +10068,7 @@
cells.push(nTd);
// Need to create the HTML if new, or if a rendering function is defined
if (create || (oCol.mRender || oCol.mData !== i) && (!$$2.isPlainObject(oCol.mData) || oCol.mData._ !== i + '.display')) {
if (create || (oCol.mRender || oCol.mData !== i) && (!$$1.isPlainObject(oCol.mData) || oCol.mData._ !== i + '.display')) {
nTd.innerHTML = _fnGetCellData(oSettings, iRow, i, 'display');
}
......@@ -10110,13 +10110,13 @@
// Remove any classes added by DT_RowClass before
var a = data.DT_RowClass.split(' ');
row.__rowc = row.__rowc ? _unique(row.__rowc.concat(a)) : a;
$$2(tr).removeClass(row.__rowc.join(' ')).addClass(data.DT_RowClass);
$$1(tr).removeClass(row.__rowc.join(' ')).addClass(data.DT_RowClass);
}
if (data.DT_RowAttr) {
$$2(tr).attr(data.DT_RowAttr);
$$1(tr).attr(data.DT_RowAttr);
}
if (data.DT_RowData) {
$$2(tr).data(data.DT_RowData);
$$1(tr).data(data.DT_RowData);
}
}
}
......@@ -10130,15 +10130,15 @@
var i, ien, cell, row, column;
var thead = oSettings.nTHead;
var tfoot = oSettings.nTFoot;
var createHeader = $$2('th, td', thead).length === 0;
var createHeader = $$1('th, td', thead).length === 0;
var classes = oSettings.oClasses;
var columns = oSettings.aoColumns;
if (createHeader) {
row = $$2('<tr/>').appendTo(thead);
row = $$1('<tr/>').appendTo(thead);
}
for (i = 0, ien = columns.length; i < ien; i++) {
column = columns[i];
cell = $$2(column.nTh).addClass(column.sClass);
cell = $$1(column.nTh).addClass(column.sClass);
if (createHeader) {
cell.appendTo(row);
}
......@@ -10161,8 +10161,8 @@
}
/* Deal with the footer - add classes if required */
$$2(thead).children('tr').children('th, td').addClass(classes.sHeaderTH);
$$2(tfoot).children('tr').children('th, td').addClass(classes.sFooterTH);
$$1(thead).children('tr').children('th, td').addClass(classes.sHeaderTH);
$$1(tfoot).children('tr').children('th, td').addClass(classes.sFooterTH);
// Cache the footer cells. Note that we only take the cells from the first
// row in the footer. If there is more than one row the user wants to
......@@ -10175,7 +10175,7 @@
if (column) {
column.nTf = cells[i].cell;
if (column.sClass) {
$$2(column.nTf).addClass(column.sClass);
$$1(column.nTf).addClass(column.sClass);
}
} else {
_fnLog(oSettings, 0, 'Incorrect column count', 18);
......@@ -10261,7 +10261,7 @@
}
/* Do the actual expansion in the DOM */
$$2(aoLocal[i][j].cell).attr('rowspan', iRowspan).attr('colspan', iColspan);
$$1(aoLocal[i][j].cell).attr('rowspan', iRowspan).attr('colspan', iColspan);
}
}
}
......@@ -10279,7 +10279,7 @@
/* Provide a pre-callback function which can be used to cancel the draw is false is returned */
var aPreDraw = _fnCallbackFire(oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings]);
if ($$2.inArray(false, aPreDraw) !== -1) {
if ($$1.inArray(false, aPreDraw) !== -1) {
_fnProcessingDisplay(oSettings, false);
return;
}
......@@ -10320,7 +10320,7 @@
if (iStripes !== 0) {
var sStripe = asStripeClasses[iRowCount % iStripes];
if (aoData._sRowStripe != sStripe) {
$$2(nRow).removeClass(aoData._sRowStripe).addClass(sStripe);
$$1(nRow).removeClass(aoData._sRowStripe).addClass(sStripe);
aoData._sRowStripe = sStripe;
}
}
......@@ -10340,9 +10340,9 @@
} else if (oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0) {
sZero = oLang.sEmptyTable;
}
anRows[0] = $$2('<tr/>', {
anRows[0] = $$1('<tr/>', {
'class': iStripes ? asStripeClasses[0] : ''
}).append($$2('<td />', {
}).append($$1('<td />', {
'valign': 'top',
'colSpan': _fnVisbleColumns(oSettings),
'class': oSettings.oClasses.sRowEmpty
......@@ -10350,11 +10350,11 @@
}
/* Header and footer callbacks */
_fnCallbackFire(oSettings, 'aoHeaderCallback', 'header', [$$2(oSettings.nTHead).children('tr')[0], _fnGetDataMaster(oSettings), iDisplayStart, iDisplayEnd, aiDisplay]);
_fnCallbackFire(oSettings, 'aoFooterCallback', 'footer', [$$2(oSettings.nTFoot).children('tr')[0], _fnGetDataMaster(oSettings), iDisplayStart, iDisplayEnd, aiDisplay]);
var body = $$2(oSettings.nTBody);
_fnCallbackFire(oSettings, 'aoHeaderCallback', 'header', [$$1(oSettings.nTHead).children('tr')[0], _fnGetDataMaster(oSettings), iDisplayStart, iDisplayEnd, aiDisplay]);
_fnCallbackFire(oSettings, 'aoFooterCallback', 'footer', [$$1(oSettings.nTFoot).children('tr')[0], _fnGetDataMaster(oSettings), iDisplayStart, iDisplayEnd, aiDisplay]);
var body = $$1(oSettings.nTBody);
body.children().detach();
body.append($$2(anRows));
body.append($$1(anRows));
/* Call all required callback functions for the end of a draw */
_fnCallbackFire(oSettings, 'aoDrawCallback', 'draw', [oSettings]);
......@@ -10403,12 +10403,12 @@
*/
function _fnAddOptionsHtml(oSettings) {
var classes = oSettings.oClasses;
var table = $$2(oSettings.nTable);
var holding = $$2('<div/>').insertBefore(table); // Holding element for speed
var table = $$1(oSettings.nTable);
var holding = $$1('<div/>').insertBefore(table); // Holding element for speed
var features = oSettings.oFeatures;
// All DataTables are wrapped in a div
var insert = $$2('<div/>', {
var insert = $$1('<div/>', {
id: oSettings.sTableId + '_wrapper',
'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' ' + classes.sNoFooter)
});
......@@ -10424,7 +10424,7 @@
cOption = aDom[i];
if (cOption == '<') {
/* New container div */
nNewNode = $$2('<div/>')[0];
nNewNode = $$1('<div/>')[0];
/* Check to see if we should append an id and/or a class name to the container */
cNext = aDom[i + 1];
......@@ -10459,7 +10459,7 @@
}
insert.append(nNewNode);
insert = $$2(nNewNode);
insert = $$1(nNewNode);
} else if (cOption == '>') {
/* End container div */
insert = insert.parent();
......@@ -10520,7 +10520,7 @@
* @memberof DataTable#oApi
*/
function _fnDetectHeader(aLayout, nThead) {
var nTrs = $$2(nThead).children('tr');
var nTrs = $$1(nThead).children('tr');
var nTr, nCell;
var i, k, l, iLen, iColShifted, iColumn, iColspan, iRowspan;
var bUnique;
......@@ -10637,7 +10637,7 @@
if (data && Array.isArray(data)) {
var tmp = {};
var rbracket = /(.*?)\[\]$/;
$$2.each(data, function (key, val) {
$$1.each(data, function (key, val) {
var match = val.name.match(rbracket);
if (match) {
// Support for arrays
......@@ -10669,14 +10669,14 @@
_fnCallbackFire(oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR]);
fn(json);
};
if ($$2.isPlainObject(ajax) && ajax.data) {
if ($$1.isPlainObject(ajax) && ajax.data) {
ajaxData = ajax.data;
var newData = typeof ajaxData === 'function' ? ajaxData(data, oSettings) :
// fn can manipulate data or return
ajaxData; // an object object or array to merge
// If the function returned something, use that alone
data = typeof ajaxData === 'function' && newData ? newData : $$2.extend(true, data, newData);
data = typeof ajaxData === 'function' && newData ? newData : $$1.extend(true, data, newData);
// Remove the data property as we've resolved it already and don't want
// jQuery to do it again (it is restored at the end of the function)
......@@ -10690,7 +10690,7 @@
"type": oSettings.sServerMethod,
"error": function (xhr, error, thrown) {
var ret = _fnCallbackFire(oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR]);
if ($$2.inArray(true, ret) === -1) {
if ($$1.inArray(true, ret) === -1) {
if (error == "parsererror") {
_fnLog(oSettings, 0, 'Invalid JSON response', 1);
} else if (xhr.readyState === 4) {
......@@ -10708,7 +10708,7 @@
_fnCallbackFire(oSettings, null, 'preXhr', [oSettings, data]);
if (oSettings.fnServerData) {
// DataTables 1.9- compatibility
oSettings.fnServerData.call(instance, oSettings.sAjaxSource, $$2.map(data, function (val, key) {
oSettings.fnServerData.call(instance, oSettings.sAjaxSource, $$1.map(data, function (val, key) {
// Need to convert back to 1.9 trad format
return {
name: key,
......@@ -10717,7 +10717,7 @@
}), callback, oSettings);
} else if (oSettings.sAjaxSource || typeof ajax === 'string') {
// DataTables 1.9- compatibility
oSettings.jqXHR = $$2.ajax($$2.extend(baseAjax, {
oSettings.jqXHR = $$1.ajax($$1.extend(baseAjax, {
url: ajax || oSettings.sAjaxSource
}));
} else if (typeof ajax === 'function') {
......@@ -10725,7 +10725,7 @@
oSettings.jqXHR = ajax.call(instance, data, callback, oSettings);
} else {
// Object to extend the base settings
oSettings.jqXHR = $$2.ajax($$2.extend(baseAjax, ajax));
oSettings.jqXHR = $$1.ajax($$1.extend(baseAjax, ajax));
// Restore for next time around
ajax.data = ajaxData;
......@@ -10831,7 +10831,7 @@
param('bRegex', preSearch.bRegex);
}
if (features.bSort) {
$$2.each(sort, function (i, val) {
$$1.each(sort, function (i, val) {
d.order.push({
column: val.col,
dir: val.dir
......@@ -10910,7 +10910,7 @@
* @return {array} Array of data to use
*/
function _fnAjaxDataSrc(oSettings, json, write) {
var dataSrc = $$2.isPlainObject(oSettings.ajax) && oSettings.ajax.dataSrc !== undefined ? oSettings.ajax.dataSrc : oSettings.sAjaxDataProp; // Compatibility with 1.9-.
var dataSrc = $$1.isPlainObject(oSettings.ajax) && oSettings.ajax.dataSrc !== undefined ? oSettings.ajax.dataSrc : oSettings.sAjaxDataProp; // Compatibility with 1.9-.
if (!write) {
if (dataSrc === 'data') {
......@@ -10940,10 +10940,10 @@
var input = '<input type="search" class="' + classes.sFilterInput + '"/>';
var str = language.sSearch;
str = str.match(/_INPUT_/) ? str.replace('_INPUT_', input) : str + input;
var filter = $$2('<div/>', {
var filter = $$1('<div/>', {
'id': !features.f ? tableId + '_filter' : null,
'class': classes.sFilter
}).append($$2('<label/>').append(str));
}).append($$1('<label/>').append(str));
var searchFn = function (event) {
/* Update all other filter input elements for the new display */
features.f;
......@@ -10967,7 +10967,7 @@
}
};
var searchDelay = settings.searchDelay !== null ? settings.searchDelay : _fnDataSource(settings) === 'ssp' ? 400 : 0;
var jqFilter = $$2('input', filter).val(previousSearch.sSearch).attr('placeholder', language.sSearchPlaceholder).on('keyup.DT search.DT input.DT paste.DT cut.DT', searchDelay ? _fnThrottle(searchFn, searchDelay) : searchFn).on('mouseup.DT', function (e) {
var jqFilter = $$1('input', filter).val(previousSearch.sSearch).attr('placeholder', language.sSearchPlaceholder).on('keyup.DT search.DT input.DT paste.DT cut.DT', searchDelay ? _fnThrottle(searchFn, searchDelay) : searchFn).on('mouseup.DT', function (e) {
// Edge fix! Edge 17 does not trigger anything other than mouse events when clicking
// on the clear icon (Edge bug 17584515). This is safe in other browsers as `searchFn`
// checks the value to see if it has changed. In other browsers it won't have.
......@@ -10982,7 +10982,7 @@
}).attr('aria-controls', tableId);
// Update the input elements whenever the table is filtered
$$2(settings.nTable).on('search.dt.DT', function (ev, s) {
$$1(settings.nTable).on('search.dt.DT', function (ev, s) {
if (settings === s) {
// IE9 throws an 'unknown error' if document.activeElement is used
// inside an iframe or frame...
......@@ -11069,7 +11069,7 @@
// So the array reference doesn't break set the results into the
// existing array
displayRows.length = 0;
$$2.merge(displayRows, rows);
$$1.merge(displayRows, rows);
}
}
......@@ -11166,7 +11166,7 @@
*
* ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
*/
var a = $$2.map(search.match(/["\u201C][^"\u201D]+["\u201D]|[^ ]+/g) || [''], function (word) {
var a = $$1.map(search.match(/["\u201C][^"\u201D]+["\u201D]|[^ ]+/g) || [''], function (word) {
if (word.charAt(0) === '"') {
var m = word.match(/^"(.*)"$/);
word = m ? m[1] : word;
......@@ -11188,7 +11188,7 @@
* @memberof DataTable#oApi
*/
var _fnEscapeRegex = DataTable.util.escapeRegex;
var __filter_div = $$2('<div>')[0];
var __filter_div = $$1('<div>')[0];
var __filter_div_textContent = __filter_div.textContent !== undefined;
// Update the filtering data for each row if needed (by invalidation or first run)
......@@ -11280,7 +11280,7 @@
function _fnFeatureHtmlInfo(settings) {
var tid = settings.sTableId,
nodes = settings.aanFeatures.i,
n = $$2('<div/>', {
n = $$1('<div/>', {
'class': settings.oClasses.sInfo,
'id': !nodes ? tid + '_info' : null
});
......@@ -11293,7 +11293,7 @@
n.attr('role', 'status').attr('aria-live', 'polite');
// Table is described by our info div
$$2(settings.nTable).attr('aria-describedby', tid + '_info');
$$1(settings.nTable).attr('aria-describedby', tid + '_info');
}
return n[0];
}
......@@ -11327,7 +11327,7 @@
if (callback !== null) {
out = callback.call(settings.oInstance, settings, start, end, max, total, out);
}
$$2(nodes).html(out);
$$1(nodes).html(out);
}
function _fnInfoMacros(settings, str) {
// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
......@@ -11459,7 +11459,7 @@
d2 = Array.isArray(menu[0]),
lengths = d2 ? menu[0] : menu,
language = d2 ? menu[1] : menu;
var select = $$2('<select/>', {
var select = $$1('<select/>', {
'name': tableId + '_length',
'aria-controls': tableId,
'class': classes.sLengthSelect
......@@ -11467,7 +11467,7 @@
for (var i = 0, ien = lengths.length; i < ien; i++) {
select[0][i] = new Option(typeof language[i] === 'number' ? settings.fnFormatNumber(language[i]) : language[i], lengths[i]);
}
var div = $$2('<div><label/></div>').addClass(classes.sLength);
var div = $$1('<div><label/></div>').addClass(classes.sLength);
if (!settings.aanFeatures.l) {
div[0].id = tableId + '_length';
}
......@@ -11475,15 +11475,15 @@
// Can't use `select` variable as user might provide their own and the
// reference is broken by the use of outerHTML
$$2('select', div).val(settings._iDisplayLength).on('change.DT', function (e) {
_fnLengthChange(settings, $$2(this).val());
$$1('select', div).val(settings._iDisplayLength).on('change.DT', function (e) {
_fnLengthChange(settings, $$1(this).val());
_fnDraw(settings);
});
// Update node value whenever anything changes the table's length
$$2(settings.nTable).on('length.dt.DT', function (e, s, len) {
$$1(settings.nTable).on('length.dt.DT', function (e, s, len) {
if (settings === s) {
$$2('select', div).val(len);
$$1('select', div).val(len);
}
});
return div[0];
......@@ -11507,7 +11507,7 @@
redraw = function (settings) {
_fnDraw(settings);
},
node = $$2('<div/>').addClass(settings.oClasses.sPaging + type)[0],
node = $$1('<div/>').addClass(settings.oClasses.sPaging + type)[0],
features = settings.aanFeatures;
if (!modern) {
plugin.fnInit(settings, node, redraw);
......@@ -11598,7 +11598,7 @@
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlProcessing(settings) {
return $$2('<div/>', {
return $$1('<div/>', {
'id': !settings.aanFeatures.r ? settings.sTableId + '_processing' : null,
'class': settings.oClasses.sProcessing,
'role': 'status'
......@@ -11613,7 +11613,7 @@
*/
function _fnProcessingDisplay(settings, show) {
if (settings.oFeatures.bProcessing) {
$$2(settings.aanFeatures.r).css('display', show ? 'block' : 'none');
$$1(settings.aanFeatures.r).css('display', show ? 'block' : 'none');
}
_fnCallbackFire(settings, null, 'processing', [settings, show]);
}
......@@ -11625,7 +11625,7 @@
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlTable(settings) {
var table = $$2(settings.nTable);
var table = $$1(settings.nTable);
// Scrolling from here on in
var scroll = settings.oScroll;
......@@ -11637,8 +11637,8 @@
var classes = settings.oClasses;
var caption = table.children('caption');
var captionSide = caption.length ? caption[0]._captionSide : null;
var headerClone = $$2(table[0].cloneNode(false));
var footerClone = $$2(table[0].cloneNode(false));
var headerClone = $$1(table[0].cloneNode(false));
var footerClone = $$1(table[0].cloneNode(false));
var footer = table.children('tfoot');
var _div = '<div/>';
var size = function (s) {
......@@ -11664,21 +11664,21 @@
* table - scroll foot table
* tfoot - tfoot
*/
var scroller = $$2(_div, {
var scroller = $$1(_div, {
'class': classes.sScrollWrapper
}).append($$2(_div, {
}).append($$1(_div, {
'class': classes.sScrollHead
}).css({
overflow: 'hidden',
position: 'relative',
border: 0,
width: scrollX ? size(scrollX) : '100%'
}).append($$2(_div, {
}).append($$1(_div, {
'class': classes.sScrollHeadInner
}).css({
'box-sizing': 'content-box',
width: scroll.sXInner || '100%'
}).append(headerClone.removeAttr('id').css('margin-left', 0).append(captionSide === 'top' ? caption : null).append(table.children('thead'))))).append($$2(_div, {
}).append(headerClone.removeAttr('id').css('margin-left', 0).append(captionSide === 'top' ? caption : null).append(table.children('thead'))))).append($$1(_div, {
'class': classes.sScrollBody
}).css({
position: 'relative',
......@@ -11686,13 +11686,13 @@
width: size(scrollX)
}).append(table));
if (footer) {
scroller.append($$2(_div, {
scroller.append($$1(_div, {
'class': classes.sScrollFoot
}).css({
overflow: 'hidden',
border: 0,
width: scrollX ? size(scrollX) : '100%'
}).append($$2(_div, {
}).append($$1(_div, {
'class': classes.sScrollFootInner
}).append(footerClone.removeAttr('id').css('margin-left', 0).append(captionSide === 'bottom' ? caption : null).append(table.children('tfoot')))));
}
......@@ -11703,7 +11703,7 @@
// When the body is scrolled, then we also want to scroll the headers
if (scrollX) {
$$2(scrollBody).on('scroll.DT', function (e) {
$$1(scrollBody).on('scroll.DT', function (e) {
var scrollLeft = this.scrollLeft;
scrollHead.scrollLeft = scrollLeft;
if (footer) {
......@@ -11711,9 +11711,9 @@
}
});
}
$$2(scrollBody).css('max-height', scrollY);
$$1(scrollBody).css('max-height', scrollY);
if (!scroll.bCollapse) {
$$2(scrollBody).css('height', scrollY);
$$1(scrollBody).css('height', scrollY);
}
settings.nScrollHead = scrollHead;
settings.nScrollBody = scrollBody;
......@@ -11749,22 +11749,22 @@
scrollXInner = scroll.sXInner,
scrollY = scroll.sY,
barWidth = scroll.iBarWidth,
divHeader = $$2(settings.nScrollHead),
divHeader = $$1(settings.nScrollHead),
divHeaderStyle = divHeader[0].style,
divHeaderInner = divHeader.children('div'),
divHeaderInnerStyle = divHeaderInner[0].style,
divHeaderTable = divHeaderInner.children('table'),
divBodyEl = settings.nScrollBody,
divBody = $$2(divBodyEl),
divBody = $$1(divBodyEl),
divBodyStyle = divBodyEl.style,
divFooter = $$2(settings.nScrollFoot),
divFooter = $$1(settings.nScrollFoot),
divFooterInner = divFooter.children('div'),
divFooterTable = divFooterInner.children('table'),
header = $$2(settings.nTHead),
table = $$2(settings.nTable),
header = $$1(settings.nTHead),
table = $$1(settings.nTable),
tableEl = table[0],
tableStyle = tableEl.style,
footer = settings.nTFoot ? $$2(settings.nTFoot) : null,
footer = settings.nTFoot ? $$1(settings.nTFoot) : null,
browser = settings.oBrowser,
ie67 = browser.bScrollOversize;
_pluck(settings.aoColumns, 'nTh');
......@@ -11833,7 +11833,7 @@
divBodyStyle.width = '100%';
divHeader[0].style.width = '100%';
}
$$2.each(_fnGetUniqueThs(settings, headerCopy), function (i, el) {
$$1.each(_fnGetUniqueThs(settings, headerCopy), function (i, el) {
idx = _fnVisibleToColumnIndex(settings, i);
el.style.width = settings.aoColumns[idx].sWidth;
});
......@@ -11874,7 +11874,7 @@
// Read all widths in next pass
_fnApplyToChildren(function (nSizer) {
var style = window.getComputedStyle ? window.getComputedStyle(nSizer).width : _fnStringToCss($$2(nSizer).width());
var style = window.getComputedStyle ? window.getComputedStyle(nSizer).width : _fnStringToCss($$1(nSizer).width());
headerContent.push(nSizer.innerHTML);
headerWidths.push(style);
}, headerSrcEls);
......@@ -11883,19 +11883,19 @@
_fnApplyToChildren(function (nToSize, i) {
nToSize.style.width = headerWidths[i];
}, headerTrgEls);
$$2(headerSrcEls).css('height', 0);
$$1(headerSrcEls).css('height', 0);
/* Same again with the footer if we have one */
if (footer) {
_fnApplyToChildren(zeroOut, footerSrcEls);
_fnApplyToChildren(function (nSizer) {
footerContent.push(nSizer.innerHTML);
footerWidths.push(_fnStringToCss($$2(nSizer).css('width')));
footerWidths.push(_fnStringToCss($$1(nSizer).css('width')));
}, footerSrcEls);
_fnApplyToChildren(function (nToSize, i) {
nToSize.style.width = footerWidths[i];
}, footerTrgEls);
$$2(footerSrcEls).height(0);
$$1(footerSrcEls).height(0);
}
/*
......@@ -12036,7 +12036,7 @@
scrollXInner = scroll.sXInner,
columnCount = columns.length,
visibleColumns = _fnGetColumns(oSettings, 'bVisible'),
headerCells = $$2('th', oSettings.nTHead),
headerCells = $$1('th', oSettings.nTHead),
tableWidthAttr = table.getAttribute('width'),
// from DOM element
tableContainer = table.parentNode,
......@@ -12077,18 +12077,18 @@
// node in the data, assign any user defined widths, then insert it into
// the DOM and allow the browser to do all the hard work of calculating
// table widths
var tmpTable = $$2(table).clone() // don't use cloneNode - IE8 will remove events on the main table
var tmpTable = $$1(table).clone() // don't use cloneNode - IE8 will remove events on the main table
.css('visibility', 'hidden').removeAttr('id');
// Clean up the table body
tmpTable.find('tbody tr').remove();
var tr = $$2('<tr/>').appendTo(tmpTable.find('tbody'));
var tr = $$1('<tr/>').appendTo(tmpTable.find('tbody'));
// Clone the table header and footer - we can't use the header / footer
// from the cloned table, since if scrolling is active, the table's
// real header and footer are contained in different table tags
tmpTable.find('thead, tfoot').remove();
tmpTable.append($$2(oSettings.nTHead).clone()).append($$2(oSettings.nTFoot).clone());
tmpTable.append($$1(oSettings.nTHead).clone()).append($$1(oSettings.nTFoot).clone());
// Remove any assigned widths from the footer (from scrolling)
tmpTable.find('tfoot th, tfoot td').css('width', '');
......@@ -12103,7 +12103,7 @@
// browser will collapse it. If this width is smaller than the
// width the column requires, then it will have no effect
if (column.sWidthOrig && scrollX) {
$$2(headerCells[i]).append($$2('<div/>').css({
$$1(headerCells[i]).append($$1('<div/>').css({
width: column.sWidthOrig,
margin: 0,
padding: 0,
......@@ -12118,20 +12118,20 @@
for (i = 0; i < visibleColumns.length; i++) {
columnIdx = visibleColumns[i];
column = columns[columnIdx];
$$2(_fnGetWidestNode(oSettings, columnIdx)).clone(false).append(column.sContentPadding).appendTo(tr);
$$1(_fnGetWidestNode(oSettings, columnIdx)).clone(false).append(column.sContentPadding).appendTo(tr);
}
}
// Tidy the temporary table - remove name attributes so there aren't
// duplicated in the dom (radio elements for example)
$$2('[name]', tmpTable).removeAttr('name');
$$1('[name]', tmpTable).removeAttr('name');
// Table has been built, attach to the document so we can work with it.
// A holding element is used, positioned at the top of the container
// with minimal height, so it has no effect on if the container scrolls
// or not. Otherwise it might trigger scrolling when it actually isn't
// needed
var holder = $$2('<div/>').css(scrollX || scrollY ? {
var holder = $$1('<div/>').css(scrollX || scrollY ? {
position: 'absolute',
top: 0,
left: 0,
......@@ -12168,7 +12168,7 @@
// need to be modified.
var total = 0;
for (i = 0; i < visibleColumns.length; i++) {
var cell = $$2(headerCells[i]);
var cell = $$1(headerCells[i]);
var border = cell.outerWidth() - cell.width();
// Use getBounding... where possible (not IE8-) because it can give
......@@ -12197,7 +12197,7 @@
}
if ((tableWidthAttr || scrollX) && !oSettings._reszEvt) {
var bindResize = function () {
$$2(window).on('resize.DT-' + oSettings.sInstance, _fnThrottle(function () {
$$1(window).on('resize.DT-' + oSettings.sInstance, _fnThrottle(function () {
_fnAdjustColumnSizing(oSettings);
}));
};
......@@ -12234,7 +12234,7 @@
if (!width) {
return 0;
}
var n = $$2('<div/>').css('width', _fnStringToCss(width)).appendTo(parent || document.body);
var n = $$1('<div/>').css('width', _fnStringToCss(width)).appendTo(parent || document.body);
var val = n[0].offsetWidth;
n.remove();
return val;
......@@ -12255,7 +12255,7 @@
var data = settings.aoData[idx];
return !data.nTr ?
// Might not have been created when deferred rendering
$$2('<td/>').html(_fnGetCellData(settings, idx, colIdx, 'display'))[0] : data.anCells[colIdx];
$$1('<td/>').html(_fnGetCellData(settings, idx, colIdx, 'display'))[0] : data.anCells[colIdx];
}
/**
......@@ -12309,7 +12309,7 @@
sType,
srcCol,
fixed = settings.aaSortingFixed,
fixedObj = $$2.isPlainObject(fixed),
fixedObj = $$1.isPlainObject(fixed),
nestedSort = [],
add = function (a) {
if (a.length && !Array.isArray(a[0])) {
......@@ -12317,7 +12317,7 @@
nestedSort.push(a);
} else {
// 2D array
$$2.merge(nestedSort, a);
$$1.merge(nestedSort, a);
}
};
......@@ -12340,7 +12340,7 @@
iCol = aDataSort[k];
sType = aoColumns[iCol].sType || 'string';
if (nestedSort[i]._idx === undefined) {
nestedSort[i]._idx = $$2.inArray(nestedSort[i][1], aoColumns[iCol].asSorting);
nestedSort[i]._idx = $$1.inArray(nestedSort[i][1], aoColumns[iCol].asSorting);
}
aSort.push({
src: srcCol,
......@@ -12531,7 +12531,7 @@
var next = function (a, overflow) {
var idx = a._idx;
if (idx === undefined) {
idx = $$2.inArray(a[1], asSorting);
idx = $$1.inArray(a[1], asSorting);
}
return idx + 1 < asSorting.length ? idx + 1 : overflow ? null : 0;
};
......@@ -12544,7 +12544,7 @@
// If appending the sort then we are multi-column sorting
if (append && settings.oFeatures.bSortMulti) {
// Are we already doing some kind of sort on this column?
var sortIdx = $$2.inArray(colIdx, _pluck(sorting, '0'));
var sortIdx = $$1.inArray(colIdx, _pluck(sorting, '0'));
if (sortIdx !== -1) {
// Yes, modify the sort
nextSortIdx = next(sorting[sortIdx], true);
......@@ -12638,13 +12638,13 @@
colIdx = oldSort[i].src;
// Remove column sorting
$$2(_pluck(settings.aoData, 'anCells', colIdx)).removeClass(sortClass + (i < 2 ? i + 1 : 3));
$$1(_pluck(settings.aoData, 'anCells', colIdx)).removeClass(sortClass + (i < 2 ? i + 1 : 3));
}
// Add new column sorting
for (i = 0, ien = sort.length; i < ien; i++) {
colIdx = sort[i].src;
$$2(_pluck(settings.aoData, 'anCells', colIdx)).addClass(sortClass + (i < 2 ? i + 1 : 3));
$$1(_pluck(settings.aoData, 'anCells', colIdx)).addClass(sortClass + (i < 2 ? i + 1 : 3));
}
}
settings.aLastSort = sort;
......@@ -12693,9 +12693,9 @@
time: +new Date(),
start: settings._iDisplayStart,
length: settings._iDisplayLength,
order: $$2.extend(true, [], settings.aaSorting),
order: $$1.extend(true, [], settings.aaSorting),
search: _fnSearchToCamel(settings.oPreviousSearch),
columns: $$2.map(settings.aoColumns, function (col, i) {
columns: $$1.map(settings.aoColumns, function (col, i) {
return {
visible: col.bVisible,
search: _fnSearchToCamel(settings.aoPreSearchCols[i])
......@@ -12749,7 +12749,7 @@
// Allow custom and plug-in manipulation functions to alter the saved data set and
// cancelling of loading by returning false
var abStateLoad = _fnCallbackFire(settings, 'aoStateLoadParams', 'stateLoadParams', [settings, s]);
if ($$2.inArray(false, abStateLoad) !== -1) {
if ($$1.inArray(false, abStateLoad) !== -1) {
settings._bLoadingState = false;
callback();
return;
......@@ -12771,7 +12771,7 @@
}
// Store the saved state so it might be accessed at any time
settings.oLoadedState = $$2.extend(true, {}, s);
settings.oLoadedState = $$1.extend(true, {}, s);
// Page Length
if (s.length !== undefined) {
......@@ -12797,14 +12797,14 @@
// Order
if (s.order !== undefined) {
settings.aaSorting = [];
$$2.each(s.order, function (i, col) {
$$1.each(s.order, function (i, col) {
settings.aaSorting.push(col[0] >= columns.length ? [0, col[1]] : col);
});
}
// Search
if (s.search !== undefined) {
$$2.extend(settings.oPreviousSearch, _fnSearchToHung(s.search));
$$1.extend(settings.oPreviousSearch, _fnSearchToHung(s.search));
}
// Columns
......@@ -12825,7 +12825,7 @@
// Search
if (col.search !== undefined) {
$$2.extend(settings.aoPreSearchCols[i], _fnSearchToHung(col.search));
$$1.extend(settings.aoPreSearchCols[i], _fnSearchToHung(col.search));
}
}
......@@ -12847,7 +12847,7 @@
*/
function _fnSettingsFromNode(table) {
var settings = DataTable.settings;
var idx = $$2.inArray(table, _pluck(settings, 'nTable'));
var idx = $$1.inArray(table, _pluck(settings, 'nTable'));
return idx !== -1 ? settings[idx] : null;
}
......@@ -12893,7 +12893,7 @@
*/
function _fnMap(ret, src, name, mappedName) {
if (Array.isArray(name)) {
$$2.each(name, function (i, val) {
$$1.each(name, function (i, val) {
if (Array.isArray(val)) {
_fnMap(ret, src, val[0], val[1]);
} else {
......@@ -12932,11 +12932,11 @@
for (var prop in extender) {
if (extender.hasOwnProperty(prop)) {
val = extender[prop];
if ($$2.isPlainObject(val)) {
if (!$$2.isPlainObject(out[prop])) {
if ($$1.isPlainObject(val)) {
if (!$$1.isPlainObject(out[prop])) {
out[prop] = {};
}
$$2.extend(true, out[prop], val);
$$1.extend(true, out[prop], val);
} else if (breakRefs && prop !== 'data' && prop !== 'aaData' && Array.isArray(val)) {
out[prop] = val.slice();
} else {
......@@ -12957,8 +12957,8 @@
* @memberof DataTable#oApi
*/
function _fnBindAction(n, oData, fn) {
$$2(n).on('click.DT', oData, function (e) {
$$2(n).trigger('blur'); // Remove focus outline for mouse users
$$1(n).on('click.DT', oData, function (e) {
$$1(n).trigger('blur'); // Remove focus outline for mouse users
fn(e);
}).on('keypress.DT', oData, function (e) {
if (e.which === 13) {
......@@ -13006,19 +13006,19 @@
function _fnCallbackFire(settings, callbackArr, eventName, args) {
var ret = [];
if (callbackArr) {
ret = $$2.map(settings[callbackArr].slice().reverse(), function (val, i) {
ret = $$1.map(settings[callbackArr].slice().reverse(), function (val, i) {
return val.fn.apply(settings.oInstance, args);
});
}
if (eventName !== null) {
var e = $$2.Event(eventName + '.dt');
var table = $$2(settings.nTable);
var e = $$1.Event(eventName + '.dt');
var table = $$1(settings.nTable);
table.trigger(e, args);
// If not yet attached to the document, trigger the event
// on the body directly to sort of simulate the bubble
if (table.parents('body').length === 0) {
$$2('body').trigger(e, args);
$$1('body').trigger(e, args);
}
ret.push(e.result);
}
......@@ -13044,7 +13044,7 @@
function _fnRenderer(settings, type) {
var renderer = settings.renderer;
var host = DataTable.ext.renderer[type];
if ($$2.isPlainObject(renderer) && renderer[type]) {
if ($$1.isPlainObject(renderer) && renderer[type]) {
// Specific renderer for this type. If available use it, otherwise use
// the default.
return host[renderer[type]] || host._;
......@@ -13144,7 +13144,7 @@
var _toSettings = function (mixed) {
var idx, jq;
var settings = DataTable.settings;
var tables = $$2.map(settings, function (el, i) {
var tables = $$1.map(settings, function (el, i) {
return el.nTable;
});
if (!mixed) {
......@@ -13154,20 +13154,20 @@
return [mixed];
} else if (mixed.nodeName && mixed.nodeName.toLowerCase() === 'table') {
// Table node
idx = $$2.inArray(mixed, tables);
idx = $$1.inArray(mixed, tables);
return idx !== -1 ? [settings[idx]] : null;
} else if (mixed && typeof mixed.settings === 'function') {
return mixed.settings().toArray();
} else if (typeof mixed === 'string') {
// jQuery selector
jq = $$2(mixed);
} else if (mixed instanceof $$2) {
jq = $$1(mixed);
} else if (mixed instanceof $$1) {
// jQuery object (also DataTables instance)
jq = mixed;
}
if (jq) {
return jq.map(function (i) {
idx = $$2.inArray(this, tables);
idx = $$1.inArray(this, tables);
return idx !== -1 ? settings[idx] : null;
}).toArray();
}
......@@ -13251,7 +13251,7 @@
// Initial data
if (data) {
$$2.merge(this, data);
$$1.merge(this, data);
}
// selector
......@@ -13266,7 +13266,7 @@
// Don't destroy the existing prototype, just extend it. Required for jQuery 2's
// isPlainObject.
$$2.extend(_Api.prototype, {
$$1.extend(_Api.prototype, {
any: function () {
return this.count() !== 0;
},
......@@ -13424,10 +13424,10 @@
return __arrayProto.slice.call(this);
},
to$: function () {
return $$2(this);
return $$1(this);
},
toJQuery: function () {
return $$2(this);
return $$1(this);
},
unique: function () {
return new _Api(this.context, _unique(this));
......@@ -13532,7 +13532,7 @@
}
if (i === ien - 1) {
src.val = val;
src.type = typeof val === 'function' ? 'function' : $$2.isPlainObject(val) ? 'object' : 'other';
src.type = typeof val === 'function' ? 'function' : $$1.isPlainObject(val) ? 'object' : 'other';
} else {
struct = method ? src.methodExt : src.propExt;
}
......@@ -13569,7 +13569,7 @@
*/
var __table_selector = function (selector, a) {
if (Array.isArray(selector)) {
return $$2.map(selector, function (item) {
return $$1.map(selector, function (item) {
return __table_selector(item, a);
});
}
......@@ -13580,12 +13580,12 @@
}
// Perform a jQuery selector on the table nodes
var nodes = $$2.map(a, function (el, i) {
var nodes = $$1.map(a, function (el, i) {
return el.nTable;
});
return $$2(nodes).filter(selector).map(function (i) {
return $$1(nodes).filter(selector).map(function (i) {
// Need to translate back from the table node to the settings
var idx = $$2.inArray(this, nodes);
var idx = $$1.inArray(this, nodes);
return a[idx];
}).toArray();
};
......@@ -13842,12 +13842,12 @@
return undefined;
}
ctx = ctx[0];
return ctx.ajax ? $$2.isPlainObject(ctx.ajax) ? ctx.ajax.url : ctx.ajax : ctx.sAjaxSource;
return ctx.ajax ? $$1.isPlainObject(ctx.ajax) ? ctx.ajax.url : ctx.ajax : ctx.sAjaxSource;
}
// set
return this.iterator('table', function (settings) {
if ($$2.isPlainObject(settings.ajax)) {
if ($$1.isPlainObject(settings.ajax)) {
settings.ajax.url = url;
} else {
settings.ajax = url;
......@@ -13919,7 +13919,7 @@
if (opts.filter && opts.search === undefined) {
opts.search = opts.filter;
}
return $$2.extend({
return $$1.extend({
search: 'none',
order: 'current',
page: 'all'
......@@ -13980,7 +13980,7 @@
for (var i = 0, ien = displayFiltered.length; i < ien; i++) {
displayFilteredMap[displayFiltered[i]] = null;
}
a = $$2.map(displayMaster, function (el) {
a = $$1.map(displayMaster, function (el) {
return !displayFilteredMap.hasOwnProperty(el) ? el : null;
});
}
......@@ -13990,7 +13990,7 @@
a.push(i);
} else {
// applied | removed
tmp = $$2.inArray(i, displayFiltered);
tmp = $$1.inArray(i, displayFiltered);
if (tmp === -1 && search == 'removed' || tmp >= 0 && search == 'applied') {
a.push(i);
}
......@@ -14025,7 +14025,7 @@
if (!rows) {
rows = _selector_row_indexes(settings, opts);
}
if (selInt !== null && $$2.inArray(selInt, rows) !== -1) {
if (selInt !== null && $$1.inArray(selInt, rows) !== -1) {
// Selector - integer
return [selInt];
} else if (sel === null || sel === undefined || sel === '') {
......@@ -14035,7 +14035,7 @@
// Selector - function
if (typeof sel === 'function') {
return $$2.map(rows, function (idx) {
return $$1.map(rows, function (idx) {
var row = aoData[idx];
return sel(idx, row._aData, row.nTr) ? idx : null;
});
......@@ -14051,7 +14051,7 @@
} else if (cellIdx) {
return aoData[cellIdx.row] && aoData[cellIdx.row].nTr === sel.parentNode ? [cellIdx.row] : [];
} else {
var host = $$2(sel).closest('*[data-dt-row]');
var host = $$1(sel).closest('*[data-dt-row]');
return host.length ? [host.data('dt-row')] : [];
}
}
......@@ -14082,7 +14082,7 @@
// Selector - jQuery selector string, array of nodes or jQuery object/
// As jQuery's .filter() allows jQuery objects to be passed in filter,
// it also allows arrays, so this will cope with all three options
return $$2(nodes).filter(sel).map(function () {
return $$1(nodes).filter(sel).map(function () {
return this._DT_RowIndex;
}).toArray();
};
......@@ -14092,7 +14092,7 @@
// argument shifting
if (selector === undefined) {
selector = '';
} else if ($$2.isPlainObject(selector)) {
} else if ($$1.isPlainObject(selector)) {
opts = selector;
selector = '';
}
......@@ -14216,7 +14216,7 @@
// Return an Api.rows() extended instance, so rows().nodes() etc can be used
var modRows = this.rows(-1);
modRows.pop();
$$2.merge(modRows, newRows);
$$1.merge(modRows, newRows);
return modRows;
});
......@@ -14253,7 +14253,7 @@
_api_register('row.add()', function (row) {
// Allow a jQuery object to be passed in - only a single row is added from
// it though - the first element in the set
if (row instanceof $$2 && row.length) {
if (row instanceof $$1 && row.length) {
row = row[0];
}
var rows = this.iterator('table', function (settings) {
......@@ -14266,7 +14266,7 @@
// Return an Api.rows() extended instance, with the newly added row selected
return this.row(rows[0]);
});
$$2(document).on('plugin-init.dt', function (e, context) {
$$1(document).on('plugin-init.dt', function (e, context) {
var api = new _Api(context);
var namespace = 'on-plugin-init';
var stateSaveParamsEvent = 'stateSaveParams.' + namespace;
......@@ -14289,7 +14289,7 @@
});
var loaded = api.state.loaded();
if (loaded && loaded.childRows) {
api.rows($$2.map(loaded.childRows, function (id) {
api.rows($$1.map(loaded.childRows, function (id) {
return id.replace(/:/g, '\\:');
})).every(function () {
_fnCallbackFire(context, null, 'requestChild', [this]);
......@@ -14301,7 +14301,7 @@
var rows = [];
var addRow = function (r, k) {
// Recursion to allow for arrays of jQuery objects
if (Array.isArray(r) || r instanceof $$2) {
if (Array.isArray(r) || r instanceof $$1) {
for (var i = 0, ien = r.length; i < ien; i++) {
addRow(r[i], k);
}
......@@ -14314,8 +14314,8 @@
rows.push(r);
} else {
// Otherwise create a row with a wrapper
var created = $$2('<tr><td></td></tr>').addClass(k);
$$2('td', created).addClass(k).html(r)[0].colSpan = _fnVisbleColumns(ctx);
var created = $$1('<tr><td></td></tr>').addClass(k);
$$1('td', created).addClass(k).html(r)[0].colSpan = _fnVisbleColumns(ctx);
rows.push(created[0]);
}
};
......@@ -14323,7 +14323,7 @@
if (row._details) {
row._details.detach();
}
row._details = $$2(rows);
row._details = $$1(rows);
// If the children were already shown, that state should be retained
if (row._detailsShow) {
......@@ -14343,7 +14343,7 @@
row._details.remove();
row._detailsShow = undefined;
row._details = undefined;
$$2(row.nTr).removeClass('dt-hasChild');
$$1(row.nTr).removeClass('dt-hasChild');
__details_state(ctx);
}
}
......@@ -14356,10 +14356,10 @@
row._detailsShow = show;
if (show) {
row._details.insertAfter(row.nTr);
$$2(row.nTr).addClass('dt-hasChild');
$$1(row.nTr).addClass('dt-hasChild');
} else {
row._details.detach();
$$2(row.nTr).removeClass('dt-hasChild');
$$1(row.nTr).removeClass('dt-hasChild');
}
_fnCallbackFire(ctx[0], null, 'childRow', [show, api.row(api[0])]);
__details_events(ctx[0]);
......@@ -14525,7 +14525,7 @@
// Selector = function
if (typeof s === 'function') {
var rows = _selector_row_indexes(settings, opts);
return $$2.map(columns, function (col, idx) {
return $$1.map(columns, function (col, idx) {
return s(idx, __columnData(settings, idx, 0, 0, rows), nodes[idx]) ? idx : null;
});
}
......@@ -14540,7 +14540,7 @@
// Visible index given, convert to column index
if (idx < 0) {
// Counting from the right
var visColumns = $$2.map(columns, function (col, i) {
var visColumns = $$1.map(columns, function (col, i) {
return col.bVisible ? i : null;
});
return [visColumns[visColumns.length + idx]];
......@@ -14549,7 +14549,7 @@
return [_fnVisibleToColumnIndex(settings, idx)];
case 'name':
// match by name. `names` is column index complete and in order
return $$2.map(names, function (name, i) {
return $$1.map(names, function (name, i) {
return name === match[1] ? i : null;
});
default:
......@@ -14563,8 +14563,8 @@
}
// jQuery selector on the TH elements for the columns
var jqResult = $$2(nodes).filter(s).map(function () {
return $$2.inArray(this, nodes); // `nodes` is column index complete and in order
var jqResult = $$1(nodes).filter(s).map(function () {
return $$1.inArray(this, nodes); // `nodes` is column index complete and in order
}).toArray();
if (jqResult.length || !s.nodeName) {
return jqResult;
......@@ -14572,7 +14572,7 @@
// Otherwise a node which might have a `dt-column` data attribute, or be
// a child or such an element
var host = $$2(s).closest('*[data-dt-column]');
var host = $$1(s).closest('*[data-dt-column]');
return host.length ? [host.data('dt-column')] : [];
};
return _selector_run('column', selector, run, settings, opts);
......@@ -14599,7 +14599,7 @@
if (vis) {
// Insert column
// Need to decide if we should use appendChild or insertBefore
var insertBefore = $$2.inArray(true, _pluck(cols, 'bVisible'), column + 1);
var insertBefore = $$1.inArray(true, _pluck(cols, 'bVisible'), column + 1);
for (i = 0, ien = data.length; i < ien; i++) {
tr = data[i].nTr;
cells = data[i].anCells;
......@@ -14610,7 +14610,7 @@
}
} else {
// Remove column
$$2(_pluck(settings.aoData, 'anCells', column)).detach();
$$1(_pluck(settings.aoData, 'anCells', column)).detach();
}
// Common actions
......@@ -14620,7 +14620,7 @@
// argument shifting
if (selector === undefined) {
selector = '';
} else if ($$2.isPlainObject(selector)) {
} else if ($$1.isPlainObject(selector)) {
opts = selector;
selector = '';
}
......@@ -14681,7 +14681,7 @@
// Update colspan for no records display. Child rows and extensions will use their own
// listeners to do this - only need to update the empty table item here
if (!settings.aiDisplay.length) {
$$2(settings.nTBody).find('td[colspan]').attr('colspan', _fnVisbleColumns(settings));
$$1(settings.nTBody).find('td[colspan]').attr('colspan', _fnVisbleColumns(settings));
}
_fnSaveState(settings);
......@@ -14723,7 +14723,7 @@
var data = settings.aoData;
var rows = _selector_row_indexes(settings, opts);
var cells = _removeEmpty(_pluck_order(data, rows, 'anCells'));
var allCells = $$2(_flatten([], cells));
var allCells = $$1(_flatten([], cells));
var row;
var columns = settings.aoColumns.length;
var a, i, ien, j, o, host;
......@@ -14755,9 +14755,9 @@
}
// Selector - index
if ($$2.isPlainObject(s)) {
if ($$1.isPlainObject(s)) {
// Valid cell index and its in the array of selectable rows
return s.column !== undefined && s.row !== undefined && $$2.inArray(s.row, rows) !== -1 ? [s] : [];
return s.column !== undefined && s.row !== undefined && $$1.inArray(s.row, rows) !== -1 ? [s] : [];
}
// Selector - jQuery filtered cells
......@@ -14775,7 +14775,7 @@
// Otherwise the selector is a node, and there is one last option - the
// element might be a child of an element which has dt-row and dt-column
// data attributes
host = $$2(s).closest('*[data-dt-row]');
host = $$1(s).closest('*[data-dt-row]');
return host.length ? [{
row: host.data('dt-row'),
column: host.data('dt-column')
......@@ -14785,7 +14785,7 @@
};
_api_register('cells()', function (rowSelector, columnSelector, opts) {
// Argument shifting
if ($$2.isPlainObject(rowSelector)) {
if ($$1.isPlainObject(rowSelector)) {
// Indexes
if (rowSelector.row === undefined) {
// Selector options in first parameter
......@@ -14797,7 +14797,7 @@
columnSelector = null;
}
}
if ($$2.isPlainObject(columnSelector)) {
if ($$1.isPlainObject(columnSelector)) {
opts = columnSelector;
columnSelector = null;
}
......@@ -14837,7 +14837,7 @@
// It is a _major_ performance drag to run this if it isn't needed, so this is
// an extension specific check at the moment
var cells = opts && opts.selected ? this.cells(cellsNoOpts, opts) : cellsNoOpts;
$$2.extend(cells.selector, {
$$1.extend(cells.selector, {
cols: columnSelector,
rows: rowSelector,
opts: opts
......@@ -14971,7 +14971,7 @@
} : fixed;
}
return this.iterator('table', function (settings) {
settings.aaSortingFixed = $$2.extend(true, {}, set);
settings.aaSortingFixed = $$1.extend(true, {}, set);
});
});
......@@ -14980,7 +14980,7 @@
var that = this;
return this.iterator('table', function (settings, i) {
var sort = [];
$$2.each(that[i], function (j, col) {
$$1.each(that[i], function (j, col) {
sort.push([col, dir]);
});
settings.aaSorting = sort;
......@@ -14998,7 +14998,7 @@
if (!settings.oFeatures.bFilter) {
return;
}
_fnFilterComplete(settings, $$2.extend({}, settings.oPreviousSearch, {
_fnFilterComplete(settings, $$1.extend({}, settings.oPreviousSearch, {
"sSearch": input + "",
"bRegex": regex === null ? false : regex,
"bSmart": smart === null ? true : smart,
......@@ -15018,7 +15018,7 @@
if (!settings.oFeatures.bFilter) {
return;
}
$$2.extend(preSearch[column], {
$$1.extend(preSearch[column], {
"sSearch": input + "",
"bRegex": regex === null ? false : regex,
"bSmart": smart === null ? true : smart,
......@@ -15059,7 +15059,7 @@
*/
DataTable.use = function (module, type) {
if (type === 'lib' || module.fn) {
$$2 = module;
$$1 = module;
} else if (type == 'win' || module.document) {
window = module;
document = module.document;
......@@ -15087,7 +15087,7 @@
// Test if the second parameter is a jQuery object
if (jq && jq.fn && jq.fn.jquery) {
$$2 = jq;
$$1 = jq;
is = true;
}
return is;
......@@ -15143,14 +15143,14 @@
* }
*/
DataTable.isDataTable = DataTable.fnIsDataTable = function (table) {
var t = $$2(table).get(0);
var t = $$1(table).get(0);
var is = false;
if (table instanceof DataTable.Api) {
return true;
}
$$2.each(DataTable.settings, function (i, o) {
var head = o.nScrollHead ? $$2('table', o.nScrollHead)[0] : null;
var foot = o.nScrollFoot ? $$2('table', o.nScrollFoot)[0] : null;
$$1.each(DataTable.settings, function (i, o) {
var head = o.nScrollHead ? $$1('table', o.nScrollHead)[0] : null;
var foot = o.nScrollFoot ? $$1('table', o.nScrollFoot)[0] : null;
if (o.nTable === t || head === t || foot === t) {
is = true;
}
......@@ -15176,12 +15176,12 @@
*/
DataTable.tables = DataTable.fnTables = function (visible) {
var api = false;
if ($$2.isPlainObject(visible)) {
if ($$1.isPlainObject(visible)) {
api = visible.api;
visible = visible.visible;
}
var a = $$2.map(DataTable.settings, function (o) {
if (!visible || visible && $$2(o.nTable).is(':visible')) {
var a = $$1.map(DataTable.settings, function (o) {
if (!visible || visible && $$1(o.nTable).is(':visible')) {
return o.nTable;
}
});
......@@ -15209,21 +15209,21 @@
_api_register('$()', function (selector, opts) {
var rows = this.rows(opts).nodes(),
// Get all rows
jqRows = $$2(rows);
return $$2([].concat(jqRows.filter(selector).toArray(), jqRows.find(selector).toArray()));
jqRows = $$1(rows);
return $$1([].concat(jqRows.filter(selector).toArray(), jqRows.find(selector).toArray()));
});
// jQuery functions to operate on the tables
$$2.each(['on', 'one', 'off'], function (i, key) {
$$1.each(['on', 'one', 'off'], function (i, key) {
_api_register(key + '()', function /* event, handler */
() {
var args = Array.prototype.slice.call(arguments);
// Add the `dt` namespace automatically if it isn't already present
args[0] = $$2.map(args[0].split(/\s/), function (e) {
args[0] = $$1.map(args[0].split(/\s/), function (e) {
return !e.match(/\.dt\b/) ? e + '.dt' : e;
}).join(' ');
var inst = $$2(this.tables().nodes());
var inst = $$1(this.tables().nodes());
inst[key].apply(inst, args);
return this;
});
......@@ -15253,10 +15253,10 @@
var tbody = settings.nTBody;
var thead = settings.nTHead;
var tfoot = settings.nTFoot;
var jqTable = $$2(table);
var jqTbody = $$2(tbody);
var jqWrapper = $$2(settings.nTableWrapper);
var rows = $$2.map(settings.aoData, function (r) {
var jqTable = $$1(table);
var jqTbody = $$1(tbody);
var jqWrapper = $$1(settings.nTableWrapper);
var rows = $$1.map(settings.aoData, function (r) {
return r.nTr;
});
var ien;
......@@ -15277,7 +15277,7 @@
// lowercase, `dt` events are user subscribed and they are responsible
// for removing them
jqWrapper.off('.DT').find(':not(tbody *)').off('.DT');
$$2(window).off('.DT-' + settings.sInstance);
$$1(window).off('.DT-' + settings.sInstance);
// When scrolling we had to break the table up - restore it
if (table != thead.parentNode) {
......@@ -15291,8 +15291,8 @@
settings.aaSorting = [];
settings.aaSortingFixed = [];
_fnSortingClasses(settings);
$$2(rows).removeClass(settings.asStripeClasses.join(' '));
$$2('th, td', thead).removeClass(classes.sSortable + ' ' + classes.sSortableAsc + ' ' + classes.sSortableDesc + ' ' + classes.sSortableNone);
$$1(rows).removeClass(settings.asStripeClasses.join(' '));
$$1('th, td', thead).removeClass(classes.sSortable + ' ' + classes.sSortableAsc + ' ' + classes.sSortableDesc + ' ' + classes.sSortableNone);
// Add the TR elements back into the table in their original order
jqTbody.children().detach();
......@@ -15319,13 +15319,13 @@
ien = settings.asDestroyStripes.length;
if (ien) {
jqTbody.children().each(function (i) {
$$2(this).addClass(settings.asDestroyStripes[i % ien]);
$$1(this).addClass(settings.asDestroyStripes[i % ien]);
});
}
}
/* Remove the settings object from the settings array */
var idx = $$2.inArray(settings, DataTable.settings);
var idx = $$1.inArray(settings, DataTable.settings);
if (idx !== -1) {
DataTable.settings.splice(idx, 1);
}
......@@ -15333,7 +15333,7 @@
});
// Add the `every()` method for rows, columns and cells in a compact form
$$2.each(['column', 'row', 'cell'], function (i, type) {
$$1.each(['column', 'row', 'cell'], function (i, type) {
_api_register(type + 's().every()', function (fn) {
var opts = this.selector.opts;
var api = this;
......@@ -15361,7 +15361,7 @@
if (resolved === undefined) {
resolved = def;
}
if (plural !== undefined && $$2.isPlainObject(resolved)) {
if (plural !== undefined && $$1.isPlainObject(resolved)) {
resolved = resolved[plural] !== undefined ? resolved[plural] : resolved._;
}
return typeof resolved === 'string' ? resolved.replace('%d', plural) // nb: plural might be undefined,
......@@ -17527,7 +17527,7 @@
* } );
* } )
*/
"oSearch": $$2.extend({}, DataTable.models.oSearch),
"oSearch": $$1.extend({}, DataTable.models.oSearch),
/**
* __Deprecated__ The functionality provided by this parameter has now been
* superseded by that provided through `ajax`, which should be used instead.
......@@ -19884,7 +19884,7 @@
//
// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
//
$$2.extend(_ext, {
$$1.extend(_ext, {
afnFiltering: _ext.search,
aTypes: _ext.type.detect,
ofnSearch: _ext.type.search,
......@@ -19895,7 +19895,7 @@
oStdClasses: _ext.classes,
oPagination: _ext.pager
});
$$2.extend(DataTable.ext.classes, {
$$1.extend(DataTable.ext.classes, {
"sTable": "dataTable",
"sNoFooter": "no-footer",
/* Paging buttons */
......@@ -19976,7 +19976,7 @@
numbers.DT_el = 'span';
return numbers;
}
$$2.extend(extPagination, {
$$1.extend(extPagination, {
simple: function (page, pages) {
return ['previous', 'next'];
},
......@@ -20000,7 +20000,7 @@
// Number of number buttons (including ellipsis) to show. _Must be odd!_
numbers_length: 7
});
$$2.extend(true, DataTable.ext.renderer, {
$$1.extend(true, DataTable.ext.renderer, {
pageButton: {
_: function (settings, host, idx, buttons, page, pages) {
var classes = settings.oClasses;
......@@ -20016,7 +20016,7 @@
for (i = 0, ien = buttons.length; i < ien; i++) {
button = buttons[i];
if (Array.isArray(button)) {
var inner = $$2('<' + (button.DT_el || 'div') + '/>').appendTo(container);
var inner = $$1('<' + (button.DT_el || 'div') + '/>').appendTo(container);
attach(inner, button);
} else {
btnDisplay = null;
......@@ -20062,7 +20062,7 @@
if (btnDisplay !== null) {
var tag = settings.oInit.pagingTag || 'a';
var disabled = btnClass.indexOf(disabledClass) !== -1;
node = $$2('<' + tag + '>', {
node = $$1('<' + tag + '>', {
'class': classes.sPageButton + ' ' + btnClass,
'aria-controls': settings.sTableId,
'aria-disabled': disabled ? 'true' : null,
......@@ -20090,11 +20090,11 @@
// elements, focus is lost on the select button which is bad for
// accessibility. So we want to restore focus once the draw has
// completed
activeEl = $$2(host).find(document.activeElement).data('dt-idx');
activeEl = $$1(host).find(document.activeElement).data('dt-idx');
} catch (e) {}
attach($$2(host).empty(), buttons);
attach($$1(host).empty(), buttons);
if (activeEl !== undefined) {
$$2(host).find('[data-dt-idx=' + activeEl + ']').trigger('focus');
$$1(host).find('[data-dt-idx=' + activeEl + ']').trigger('focus');
}
}
}
......@@ -20102,7 +20102,7 @@
// Built in type detection. See model.ext.aTypes for information about
// what is required from this methods.
$$2.extend(DataTable.ext.type.detect, [
$$1.extend(DataTable.ext.type.detect, [
// Plain numbers - first since V8 detects some plain numbers as dates
// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).
function (d, settings) {
......@@ -20147,7 +20147,7 @@
// html formatted numbers by `_addNumericSort()` when we know what the decimal
// place is
$$2.extend(DataTable.ext.type.search, {
$$1.extend(DataTable.ext.type.search, {
html: function (data) {
return _empty(data) ? data : typeof data === 'string' ? data.replace(_re_new_lines, " ").replace(_re_html, "") : '';
},
......@@ -20185,7 +20185,7 @@
// in a function to provide an easy ability for the language options to add
// additional methods if a non-period decimal place is used.
function _addNumericSort(decimalPlace) {
$$2.each({
$$1.each({
// Plain numbers
"num": function (d) {
return __numericReplace(d, decimalPlace);
......@@ -20214,7 +20214,7 @@
}
// Default sort methods
$$2.extend(_ext.type.order, {
$$1.extend(_ext.type.order, {
// Dates
"date-pre": function (d) {
var ts = Date.parse(d);
......@@ -20242,7 +20242,7 @@
// Numeric sorting types - order doesn't matter here
_addNumericSort('');
$$2.extend(true, DataTable.ext.renderer, {
$$1.extend(true, DataTable.ext.renderer, {
header: {
_: function (settings, cell, column, classes) {
// No additional mark-up required
......@@ -20250,7 +20250,7 @@
// `DT` namespace will allow the event to be removed automatically
// on destroy, while the `dt` namespaced event is the one we are
// listening for
$$2(settings.nTable).on('order.dt.DT', function (e, ctx, sorting, columns) {
$$1(settings.nTable).on('order.dt.DT', function (e, ctx, sorting, columns) {
if (settings !== ctx) {
// need to check this this is the host
return; // table, not a nested one
......@@ -20261,10 +20261,10 @@
});
},
jqueryui: function (settings, cell, column, classes) {
$$2('<div/>').addClass(classes.sSortJUIWrapper).append(cell.contents()).append($$2('<span/>').addClass(classes.sSortIcon + ' ' + column.sSortingClassJUI)).appendTo(cell);
$$1('<div/>').addClass(classes.sSortJUIWrapper).append(cell.contents()).append($$1('<span/>').addClass(classes.sSortIcon + ' ' + column.sSortingClassJUI)).appendTo(cell);
// Attach a sort listener to update on sort
$$2(settings.nTable).on('order.dt.DT', function (e, ctx, sorting, columns) {
$$1(settings.nTable).on('order.dt.DT', function (e, ctx, sorting, columns) {
if (settings !== ctx) {
return;
}
......@@ -20545,7 +20545,7 @@
* between versions.
* @namespace
*/
$$2.extend(DataTable.ext.internal, {
$$1.extend(DataTable.ext.internal, {
_fnExternApiFunc: _fnExternApiFunc,
_fnBuildAjax: _fnBuildAjax,
_fnAjaxUpdate: _fnAjaxUpdate,
......@@ -20642,25 +20642,25 @@
});
// jQuery access
$$2.fn.dataTable = DataTable;
$$1.fn.dataTable = DataTable;
// Provide access to the host jQuery object (circular reference)
DataTable.$ = $$2;
DataTable.$ = $$1;
// Legacy aliases
$$2.fn.dataTableSettings = DataTable.settings;
$$2.fn.dataTableExt = DataTable.ext;
$$1.fn.dataTableSettings = DataTable.settings;
$$1.fn.dataTableExt = DataTable.ext;
// With a capital `D` we return a DataTables API instance rather than a
// jQuery object
$$2.fn.DataTable = function (opts) {
return $$2(this).dataTable(opts).api();
$$1.fn.DataTable = function (opts) {
return $$1(this).dataTable(opts).api();
};
// All properties that are available to $.fn.dataTable should also be
// available on $.fn.DataTable
$$2.each(DataTable, function (prop, val) {
$$2.fn.DataTable[prop] = val;
$$1.each(DataTable, function (prop, val) {
$$1.fn.DataTable[prop] = val;
});
// Search Filter
......@@ -21205,7 +21205,7 @@
}
return a;
}
function $$1(selector, context) {
function $(selector, context) {
const window = getWindow();
const document = getDocument();
let arr = [];
......@@ -21240,7 +21240,7 @@
}
return new Dom7(arrayUnique(arr));
}
$$1.fn = Dom7.prototype;
$.fn = Dom7.prototype;
// eslint-disable-next-line
......@@ -21325,11 +21325,11 @@
if (eventData.indexOf(e) < 0) {
eventData.unshift(e);
}
if ($$1(target).is(targetSelector)) listener.apply(target, eventData);else {
const parents = $$1(target).parents(); // eslint-disable-line
if ($(target).is(targetSelector)) listener.apply(target, eventData);else {
const parents = $(target).parents(); // eslint-disable-line
for (let k = 0; k < parents.length; k += 1) {
if ($$1(parents[k]).is(targetSelector)) listener.apply(parents[k], eventData);
if ($(parents[k]).is(targetSelector)) listener.apply(parents[k], eventData);
}
}
}
......@@ -21521,7 +21521,7 @@
}
function filter(callback) {
const result = arrayFilter(this, callback);
return $$1(result);
return $(result);
}
function html(html) {
if (typeof html === 'undefined') {
......@@ -21552,7 +21552,7 @@
if (el.matches) return el.matches(selector);
if (el.webkitMatchesSelector) return el.webkitMatchesSelector(selector);
if (el.msMatchesSelector) return el.msMatchesSelector(selector);
compareWith = $$1(selector);
compareWith = $(selector);
for (i = 0; i < compareWith.length; i += 1) {
if (compareWith[i] === el) return true;
}
......@@ -21590,14 +21590,14 @@
if (typeof index === 'undefined') return this;
const length = this.length;
if (index > length - 1) {
return $$1([]);
return $([]);
}
if (index < 0) {
const returnIndex = length + index;
if (returnIndex < 0) return $$1([]);
return $$1([this[returnIndex]]);
if (returnIndex < 0) return $([]);
return $([this[returnIndex]]);
}
return $$1([this[index]]);
return $([this[index]]);
}
function append(...els) {
let newChild;
......@@ -21646,57 +21646,57 @@
function next(selector) {
if (this.length > 0) {
if (selector) {
if (this[0].nextElementSibling && $$1(this[0].nextElementSibling).is(selector)) {
return $$1([this[0].nextElementSibling]);
if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) {
return $([this[0].nextElementSibling]);
}
return $$1([]);
return $([]);
}
if (this[0].nextElementSibling) return $$1([this[0].nextElementSibling]);
return $$1([]);
if (this[0].nextElementSibling) return $([this[0].nextElementSibling]);
return $([]);
}
return $$1([]);
return $([]);
}
function nextAll(selector) {
const nextEls = [];
let el = this[0];
if (!el) return $$1([]);
if (!el) return $([]);
while (el.nextElementSibling) {
const next = el.nextElementSibling; // eslint-disable-line
if (selector) {
if ($$1(next).is(selector)) nextEls.push(next);
if ($(next).is(selector)) nextEls.push(next);
} else nextEls.push(next);
el = next;
}
return $$1(nextEls);
return $(nextEls);
}
function prev(selector) {
if (this.length > 0) {
const el = this[0];
if (selector) {
if (el.previousElementSibling && $$1(el.previousElementSibling).is(selector)) {
return $$1([el.previousElementSibling]);
if (el.previousElementSibling && $(el.previousElementSibling).is(selector)) {
return $([el.previousElementSibling]);
}
return $$1([]);
return $([]);
}
if (el.previousElementSibling) return $$1([el.previousElementSibling]);
return $$1([]);
if (el.previousElementSibling) return $([el.previousElementSibling]);
return $([]);
}
return $$1([]);
return $([]);
}
function prevAll(selector) {
const prevEls = [];
let el = this[0];
if (!el) return $$1([]);
if (!el) return $([]);
while (el.previousElementSibling) {
const prev = el.previousElementSibling; // eslint-disable-line
if (selector) {
if ($$1(prev).is(selector)) prevEls.push(prev);
if ($(prev).is(selector)) prevEls.push(prev);
} else prevEls.push(prev);
el = prev;
}
return $$1(prevEls);
return $(prevEls);
}
function parent(selector) {
const parents = []; // eslint-disable-line
......@@ -21704,13 +21704,13 @@
for (let i = 0; i < this.length; i += 1) {
if (this[i].parentNode !== null) {
if (selector) {
if ($$1(this[i].parentNode).is(selector)) parents.push(this[i].parentNode);
if ($(this[i].parentNode).is(selector)) parents.push(this[i].parentNode);
} else {
parents.push(this[i].parentNode);
}
}
}
return $$1(parents);
return $(parents);
}
function parents(selector) {
const parents = []; // eslint-disable-line
......@@ -21720,20 +21720,20 @@
while (parent) {
if (selector) {
if ($$1(parent).is(selector)) parents.push(parent);
if ($(parent).is(selector)) parents.push(parent);
} else {
parents.push(parent);
}
parent = parent.parentNode;
}
}
return $$1(parents);
return $(parents);
}
function closest(selector) {
let closest = this; // eslint-disable-line
if (typeof selector === 'undefined') {
return $$1([]);
return $([]);
}
if (!closest.is(selector)) {
closest = closest.parents(selector).eq(0);
......@@ -21748,7 +21748,7 @@
foundElements.push(found[j]);
}
}
return $$1(foundElements);
return $(foundElements);
}
function children(selector) {
const children = []; // eslint-disable-line
......@@ -21756,12 +21756,12 @@
for (let i = 0; i < this.length; i += 1) {
const childNodes = this[i].children;
for (let j = 0; j < childNodes.length; j += 1) {
if (!selector || $$1(childNodes[j]).is(selector)) {
if (!selector || $(childNodes[j]).is(selector)) {
children.push(childNodes[j]);
}
}
}
return $$1(children);
return $(children);
}
function remove() {
for (let i = 0; i < this.length; i += 1) {
......@@ -21809,7 +21809,7 @@
remove
};
Object.keys(Methods).forEach(methodName => {
Object.defineProperty($$1.fn, methodName, {
Object.defineProperty($.fn, methodName, {
value: Methods[methodName],
writable: true
});
......@@ -22619,7 +22619,7 @@
if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {
if (swiper.params.centeredSlides) {
(swiper.visibleSlides || $$1([])).each(slide => {
(swiper.visibleSlides || $([])).each(slide => {
activeSlides.push(slide);
});
} else {
......@@ -22686,7 +22686,7 @@
slide.progress = rtl ? -slideProgress : slideProgress;
slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;
}
swiper.visibleSlides = $$1(swiper.visibleSlides);
swiper.visibleSlides = $(swiper.visibleSlides);
}
function updateProgress(translate) {
......@@ -22852,7 +22852,7 @@
function updateClickedSlide(e) {
const swiper = this;
const params = swiper.params;
const slide = $$1(e).closest(`.${params.slideClass}`)[0];
const slide = $(e).closest(`.${params.slideClass}`)[0];
let slideFound = false;
let slideIndex;
if (slide) {
......@@ -22867,7 +22867,7 @@
if (slide && slideFound) {
swiper.clickedSlide = slide;
if (swiper.virtual && swiper.params.virtual.enabled) {
swiper.clickedIndex = parseInt($$1(slide).attr('data-swiper-slide-index'), 10);
swiper.clickedIndex = parseInt($(slide).attr('data-swiper-slide-index'), 10);
} else {
swiper.clickedIndex = slideIndex;
}
......@@ -23425,7 +23425,7 @@
let realIndex;
if (params.loop) {
if (swiper.animating) return;
realIndex = parseInt($$1(swiper.clickedSlide).attr('data-swiper-slide-index'), 10);
realIndex = parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'), 10);
if (params.centeredSlides) {
if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 || slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {
swiper.loopFix();
......@@ -23468,14 +23468,14 @@
$wrapperEl
} = swiper; // Remove duplicated slides
const $selector = $wrapperEl.children().length > 0 ? $$1($wrapperEl.children()[0].parentNode) : $wrapperEl;
const $selector = $wrapperEl.children().length > 0 ? $($wrapperEl.children()[0].parentNode) : $wrapperEl;
$selector.children(`.${params.slideClass}.${params.slideDuplicateClass}`).remove();
let slides = $selector.children(`.${params.slideClass}`);
if (params.loopFillGroupWithBlank) {
const blankSlidesNum = params.slidesPerGroup - slides.length % params.slidesPerGroup;
if (blankSlidesNum !== params.slidesPerGroup) {
for (let i = 0; i < blankSlidesNum; i += 1) {
const blankNode = $$1(document.createElement('div')).addClass(`${params.slideClass} ${params.slideBlankClass}`);
const blankNode = $(document.createElement('div')).addClass(`${params.slideClass} ${params.slideBlankClass}`);
$selector.append(blankNode);
}
slides = $selector.children(`.${params.slideClass}`);
......@@ -23490,7 +23490,7 @@
const prependSlides = [];
const appendSlides = [];
slides.each((el, index) => {
const slide = $$1(el);
const slide = $(el);
slide.attr('data-swiper-slide-index', index);
});
for (let i = 0; i < swiper.loopedSlides; i += 1) {
......@@ -23499,10 +23499,10 @@
prependSlides.unshift(slides.eq(slides.length - index - 1)[0]);
}
for (let i = 0; i < appendSlides.length; i += 1) {
$selector.append($$1(appendSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
$selector.append($(appendSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
}
for (let i = prependSlides.length - 1; i >= 0; i -= 1) {
$selector.prepend($$1(prependSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
$selector.prepend($(prependSlides[i].cloneNode(true)).addClass(params.slideDuplicateClass));
}
}
......@@ -23614,7 +23614,7 @@
}
let e = event;
if (e.originalEvent) e = e.originalEvent;
let $targetEl = $$1(e.target);
let $targetEl = $(e.target);
if (params.touchEventsTarget === 'wrapper') {
if (!$targetEl.closest(swiper.wrapperEl).length) return;
}
......@@ -23627,7 +23627,7 @@
const eventPath = event.composedPath ? event.composedPath() : event.path;
if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) {
$targetEl = $$1(eventPath[0]);
$targetEl = $(eventPath[0]);
}
const noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : `.${params.noSwipingClass}`;
const isTargetShadow = !!(e.target && e.target.shadowRoot); // use closestElement for shadow root element to get the actual closest for nested shadow root element
......@@ -23675,7 +23675,7 @@
data.isTouched = false;
}
}
if (document.activeElement && $$1(document.activeElement).is(data.focusableElements) && document.activeElement !== $targetEl[0]) {
if (document.activeElement && $(document.activeElement).is(data.focusableElements) && document.activeElement !== $targetEl[0]) {
document.activeElement.blur();
}
const shouldPreventDefault = preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault;
......@@ -23718,7 +23718,7 @@
return;
}
if (!swiper.allowTouchMove) {
if (!$$1(e.target).is(data.focusableElements)) {
if (!$(e.target).is(data.focusableElements)) {
swiper.allowClick = false;
}
if (data.isTouched) {
......@@ -23745,7 +23745,7 @@
}
}
if (data.isTouchEvent && document.activeElement) {
if (e.target === document.activeElement && $$1(e.target).is(data.focusableElements)) {
if (e.target === document.activeElement && $(e.target).is(data.focusableElements)) {
data.isMoved = true;
swiper.allowClick = false;
return;
......@@ -24357,7 +24357,7 @@
function onReady() {
if (callback) callback();
}
const isPicture = $$1(imageEl).parent('picture')[0];
const isPicture = $(imageEl).parent('picture')[0];
if (!isPicture && (!imageEl.complete || !checkForComplete)) {
if (src) {
image = new window.Image();
......@@ -24621,9 +24621,9 @@
if (!params) params = {};
params = extend({}, params);
if (el && !params.el) params.el = el;
if (params.el && $$1(params.el).length > 1) {
if (params.el && $(params.el).length > 1) {
const swipers = [];
$$1(params.el).each(containerEl => {
$(params.el).each(containerEl => {
const newParams = extend({}, params, {
el: containerEl
});
......@@ -24673,7 +24673,7 @@
swiper.onAny(swiper.params.onAny);
} // Save Dom lib
swiper.$ = $$1; // Extend Swiper
swiper.$ = $; // Extend Swiper
Object.assign(swiper, {
enabled: swiper.params.enabled,
......@@ -24681,7 +24681,7 @@
// Classes
classNames: [],
// Slides
slides: $$1(),
slides: $(),
slidesGrid: [],
snapGrid: [],
slidesSizesGrid: [],
......@@ -24959,7 +24959,7 @@
const swiper = this;
if (swiper.mounted) return true; // Find el
const $el = $$1(el || swiper.params.el);
const $el = $(el || swiper.params.el);
el = $el[0];
if (!el) {
return false;
......@@ -24970,13 +24970,13 @@
};
const getWrapper = () => {
if (el && el.shadowRoot && el.shadowRoot.querySelector) {
const res = $$1(el.shadowRoot.querySelector(getWrapperSelector())); // Children needs to return slot items
const res = $(el.shadowRoot.querySelector(getWrapperSelector())); // Children needs to return slot items
res.children = options => $el.children(options);
return res;
}
if (!$el.children) {
return $$1($el).children(getWrapperSelector());
return $($el).children(getWrapperSelector());
}
return $el.children(getWrapperSelector());
}; // Find Wrapper
......@@ -24985,7 +24985,7 @@
if ($wrapperEl.length === 0 && swiper.params.createElements) {
const document = getDocument();
const wrapper = document.createElement('div');
$wrapperEl = $$1(wrapper);
$wrapperEl = $(wrapper);
wrapper.className = swiper.params.wrapperClass;
$el.append(wrapper);
$el.children(`.${swiper.params.slideClass}`).each(slideEl => {
......@@ -25213,12 +25213,12 @@
}
function enable() {
if (swiper.keyboard.enabled) return;
$$1(document).on('keydown', handle);
$(document).on('keydown', handle);
swiper.keyboard.enabled = true;
}
function disable() {
if (!swiper.keyboard.enabled) return;
$$1(document).off('keydown', handle);
$(document).off('keydown', handle);
swiper.keyboard.enabled = false;
}
on('init', () => {
......@@ -25282,7 +25282,7 @@
function getEl(el) {
let $el;
if (el) {
$el = $$1(el);
$el = $(el);
if (swiper.params.uniqueNavElements && typeof el === 'string' && $el.length > 1 && swiper.$el.find(el).length === 1) {
$el = swiper.$el.find(el);
}
......@@ -25394,7 +25394,7 @@
$prevEl
} = swiper.navigation;
const targetEl = e.target;
if (swiper.params.navigation.hideOnClick && !$$1(targetEl).is($prevEl) && !$$1(targetEl).is($nextEl)) {
if (swiper.params.navigation.hideOnClick && !$(targetEl).is($prevEl) && !$(targetEl).is($nextEl)) {
if (swiper.pagination && swiper.params.pagination && swiper.params.pagination.clickable && (swiper.pagination.el === targetEl || swiper.pagination.el.contains(targetEl))) return;
let isHidden;
if ($nextEl) {
......@@ -25539,7 +25539,7 @@
bullets.removeClass(['', '-next', '-next-next', '-prev', '-prev-prev', '-main'].map(suffix => `${params.bulletActiveClass}${suffix}`).join(' '));
if ($el.length > 1) {
bullets.each(bullet => {
const $bullet = $$1(bullet);
const $bullet = $(bullet);
const bulletIndex = $bullet.index();
if (bulletIndex === current) {
$bullet.addClass(params.bulletActiveClass);
......@@ -25668,14 +25668,14 @@
});
const params = swiper.params.pagination;
if (!params.el) return;
let $el = $$1(params.el);
let $el = $(params.el);
if ($el.length === 0) return;
if (swiper.params.uniqueNavElements && typeof params.el === 'string' && $el.length > 1) {
$el = swiper.$el.find(params.el); // check if it belongs to another nested Swiper
if ($el.length > 1) {
$el = $el.filter(el => {
if ($$1(el).parents('.swiper')[0] !== swiper.el) return false;
if ($(el).parents('.swiper')[0] !== swiper.el) return false;
return true;
});
}
......@@ -25698,7 +25698,7 @@
if (params.clickable) {
$el.on('click', classesToSelector(params.bulletClass), function onClick(e) {
e.preventDefault();
let index = $$1(this).index() * swiper.params.slidesPerGroup;
let index = $(this).index() * swiper.params.slidesPerGroup;
if (swiper.params.loop) index += swiper.loopedSlides;
swiper.slideTo(index);
});
......@@ -25776,7 +25776,7 @@
const {
$el
} = swiper.pagination;
if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && $el && $el.length > 0 && !$$1(targetEl).hasClass(swiper.params.pagination.bulletClass)) {
if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && $el && $el.length > 0 && !$(targetEl).hasClass(swiper.params.pagination.bulletClass)) {
if (swiper.navigation && (swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl || swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl)) return;
const isHidden = $el.hasClass(swiper.params.pagination.hiddenClass);
if (isHidden === true) {
......@@ -25882,7 +25882,7 @@
function onEnterOrSpaceKey(e) {
if (e.keyCode !== 13 && e.keyCode !== 32) return;
const params = swiper.params.a11y;
const $targetEl = $$1(e.target);
const $targetEl = $(e.target);
if (swiper.navigation && swiper.navigation.$nextEl && $targetEl.is(swiper.navigation.$nextEl)) {
if (!(swiper.isEnd && !swiper.params.loop)) {
swiper.slideNext();
......@@ -25942,7 +25942,7 @@
const params = swiper.params.a11y;
if (!hasPagination()) return;
swiper.pagination.bullets.each(bulletEl => {
const $bulletEl = $$1(bulletEl);
const $bulletEl = $(bulletEl);
if (swiper.params.pagination.clickable) {
makeElFocusable($bulletEl);
if (!swiper.params.pagination.renderBullet) {
......@@ -25989,15 +25989,15 @@
const initSlides = () => {
const params = swiper.params.a11y;
if (params.itemRoleDescriptionMessage) {
addElRoleDescription($$1(swiper.slides), params.itemRoleDescriptionMessage);
addElRoleDescription($(swiper.slides), params.itemRoleDescriptionMessage);
}
if (params.slideRole) {
addElRole($$1(swiper.slides), params.slideRole);
addElRole($(swiper.slides), params.slideRole);
}
const slidesLength = swiper.params.loop ? swiper.slides.filter(el => !el.classList.contains(swiper.params.slideDuplicateClass)).length : swiper.slides.length;
if (params.slideLabelMessage) {
swiper.slides.each((slideEl, index) => {
const $slideEl = $$1(slideEl);
const $slideEl = $(slideEl);
const slideIndex = swiper.params.loop ? parseInt($slideEl.attr('data-swiper-slide-index'), 10) : index;
const ariaLabelMessage = params.slideLabelMessage.replace(/\{\{index\}\}/, slideIndex + 1).replace(/\{\{slidesLength\}\}/, slidesLength);
addElLabel($slideEl, ariaLabelMessage);
......@@ -26073,7 +26073,7 @@
swiper.$el.off('pointerup', handlePointerUp, true);
}
on('beforeInit', () => {
liveRegion = $$1(`<span class="${swiper.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`);
liveRegion = $(`<span class="${swiper.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`);
});
on('afterInit', () => {
if (!swiper.params.a11y.enabled) return;
......@@ -26400,18 +26400,6 @@
if (evalType === "above") return y < vpH + st;
};
jQuery(document).ready(function ($) {
// var itemToWatch = document.querySelector('.gt_options');
// onClassChange(itemToWatch, (node) => {
// node.classList.contains('gt-open')
// ? $('#pojo-a11y-toolbar').removeClass('pojo-a11y-toolbar-open')
// : console.log('class removed');
// });
$(document).on("click", ".mega-toggle-on", function (e) {
if ($(this).hasClass('mega-toggle-on')) ;
});
trim_text();
$('#relevant-resources').dataTable({
info: false,
......@@ -26458,7 +26446,6 @@
origOpen.apply(this, arguments);
};
})();
});
$(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) {
if (this.value == 'news') {
$('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
......@@ -26470,6 +26457,7 @@
myLazyLoad.update();
}
});
});
document.addEventListener('wpcf7mailsent', function (event) {
jQuery('.appArea.responsive').hide();
}, true);
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -37,26 +37,6 @@ window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) {
jQuery(document).ready(function($) {
// var itemToWatch = document.querySelector('.gt_options');
// onClassChange(itemToWatch, (node) => {
// node.classList.contains('gt-open')
// ? $('#pojo-a11y-toolbar').removeClass('pojo-a11y-toolbar-open')
// : console.log('class removed');
// });
$(document).on("click", ".mega-toggle-on", function(e){
if($(this).hasClass('mega-toggle-on')){
//$(this).removeClass('mega-toggle-on');
}
});
trim_text();
$('#relevant-resources').dataTable( {
......@@ -113,10 +93,8 @@ jQuery(document).ready(function($) {
};
})();
});
$(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){
$(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){
if (this.value == 'news') {
$('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
......@@ -127,10 +105,14 @@ $(document).on("change",' #top-news-select input[type="radio"][name="_sft_categ
$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
myLazyLoad.update();
}
});
});
document.addEventListener( 'wpcf7mailsent', function( event ) {
jQuery('.appArea.responsive').hide();
}, true );
......
......@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.527
Version: 1.0.528
*/
\ No newline at end of file
......