Show More
Commit Description:
wip
Commit Description:
wip
References:
File last commit:
Show/Diff file:
Action:
vendor/javascript/datatables/Editor-2.0.9/js/editor.dataTables.js
| 88 lines
| 1.9 KiB
| application/javascript
| JavascriptLexer
|
r866 | ||||
/*! DataTables styling integration for DataTables' Editor | ||||
* ©SpryMedia Ltd - datatables.net/license | ||||
*/ | ||||
(function( factory ){ | ||||
if ( typeof define === 'function' && define.amd ) { | ||||
// AMD | ||||
define( ['jquery', 'datatables.net-dt', 'datatables.net-editor'], function ( $ ) { | ||||
return factory( $, window, document ); | ||||
} ); | ||||
} | ||||
else if ( typeof exports === 'object' ) { | ||||
// CommonJS | ||||
module.exports = function (root, $) { | ||||
if ( ! root ) { | ||||
// CommonJS environments without a window global must pass a | ||||
// root. This will give an error otherwise | ||||
root = window; | ||||
} | ||||
if ( ! $ ) { | ||||
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window | ||||
require('jquery') : | ||||
require('jquery')( root ); | ||||
} | ||||
if ( ! $.fn.dataTable ) { | ||||
require('datatables.net-dt')(root, $); | ||||
} | ||||
if ( ! $.fn.dataTable ) { | ||||
require('datatables.net-editor')(root, $); | ||||
} | ||||
return factory( $, root, root.document ); | ||||
}; | ||||
} | ||||
else { | ||||
// Browser | ||||
factory( jQuery, window, document ); | ||||
} | ||||
}(function( $, window, document, undefined ) { | ||||
'use strict'; | ||||
var DataTable = $.fn.dataTable; | ||||
(function( factory ){ | ||||
if ( typeof define === 'function' && define.amd ) { | ||||
// AMD | ||||
define( ['jquery', 'datatables.net-dt', 'datatables.net-editor'], function ( $ ) { | ||||
return factory( $, window, document ); | ||||
} ); | ||||
} | ||||
else if ( typeof exports === 'object' ) { | ||||
// CommonJS | ||||
module.exports = function (root, $) { | ||||
if ( ! root ) { | ||||
root = window; | ||||
} | ||||
if ( ! $ || ! $.fn.dataTable ) { | ||||
$ = require('datatables.net-dt')(root, $).$; | ||||
} | ||||
if ( ! $.fn.dataTable.Editor ) { | ||||
require('datatables.net-editor')(root, $); | ||||
} | ||||
return factory( $, root, root.document ); | ||||
}; | ||||
} | ||||
else { | ||||
// Browser | ||||
factory( jQuery, window, document ); | ||||
} | ||||
}(function( $, window, document, undefined ) { | ||||
'use strict'; | ||||
return $.fn.dataTable.Editor; | ||||
})); | ||||
return Editor; | ||||
})); | ||||