[7304c7f] | 1 | (function (factory) {
|
---|
| 2 | if (typeof define === 'function' && define.amd) {
|
---|
| 3 | // AMD
|
---|
| 4 | define(['jquery', 'datatables.net-zf', 'datatables.net-searchpanes'], function ($) {
|
---|
| 5 | return factory($, window, document);
|
---|
| 6 | });
|
---|
| 7 | }
|
---|
| 8 | else if (typeof exports === 'object') {
|
---|
| 9 | // CommonJS
|
---|
| 10 | module.exports = function (root, $) {
|
---|
| 11 | if (!root) {
|
---|
| 12 | root = window;
|
---|
| 13 | }
|
---|
| 14 | if (!$ || !$.fn.dataTable) {
|
---|
| 15 | $ = require('datatables.net-zf')(root, $).$;
|
---|
| 16 | }
|
---|
| 17 | if (!$.fn.dataTable.searchPanes) {
|
---|
| 18 | require('datatables.net-searchpanes')(root, $);
|
---|
| 19 | }
|
---|
| 20 | return factory($, root, root.document);
|
---|
| 21 | };
|
---|
| 22 | }
|
---|
| 23 | else {
|
---|
| 24 | // Browser
|
---|
| 25 | factory(jQuery, window, document);
|
---|
| 26 | }
|
---|
| 27 | }(function ($, window, document) {
|
---|
| 28 | 'use strict';
|
---|
| 29 | var DataTable = $.fn.dataTable;
|
---|
| 30 | $.extend(true, DataTable.SearchPane.classes, {
|
---|
| 31 | buttonGroup: 'secondary button-group',
|
---|
| 32 | disabledButton: 'disabled',
|
---|
| 33 | dull: 'disabled',
|
---|
| 34 | narrow: 'dtsp-narrow',
|
---|
| 35 | narrowButton: 'dtsp-narrowButton',
|
---|
| 36 | narrowSearch: 'dtsp-narrowSearch',
|
---|
| 37 | paneButton: 'secondary button',
|
---|
| 38 | pill: 'badge secondary',
|
---|
| 39 | search: 'search',
|
---|
| 40 | searchLabelCont: 'searchCont',
|
---|
| 41 | show: 'col',
|
---|
| 42 | table: 'unstriped'
|
---|
| 43 | });
|
---|
| 44 | $.extend(true, DataTable.SearchPanes.classes, {
|
---|
| 45 | clearAll: 'dtsp-clearAll button secondary',
|
---|
| 46 | panes: 'panes dtsp-panesContainer',
|
---|
| 47 | title: 'dtsp-title'
|
---|
| 48 | });
|
---|
| 49 | return DataTable.searchPanes;
|
---|
| 50 | }));
|
---|