1 | (function (factory) {
|
---|
2 | if (typeof define === 'function' && define.amd) {
|
---|
3 | // AMD
|
---|
4 | define(['jquery', 'datatables.net-ju', '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-ju')(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 | disabledButton: 'dtsp-paneInputButton dtsp-dull',
|
---|
32 | paneButton: 'dtsp-paneButton ui-button',
|
---|
33 | topRow: 'dtsp-topRow ui-state-default'
|
---|
34 | });
|
---|
35 | $.extend(true, DataTable.SearchPanes.classes, {
|
---|
36 | clearAll: 'dtsp-clearAll ui-button'
|
---|
37 | });
|
---|
38 | return DataTable.searchPanes;
|
---|
39 | }));
|
---|