source: public/vendors/dataTable/Responsive-2.2.3/js/responsive.semanticui.js@ 24a616f

develop
Last change on this file since 24a616f was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago

added user authentication, create & forgot password methods and blades

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*! Bootstrap integration for DataTables' Responsive
2 * ©2015-2016 SpryMedia Ltd - datatables.net/license
3 */
4
5(function( factory ){
6 if ( typeof define === 'function' && define.amd ) {
7 // AMD
8 define( ['jquery', 'datatables.net-se', 'datatables.net-responsive'], function ( $ ) {
9 return factory( $, window, document );
10 } );
11 }
12 else if ( typeof exports === 'object' ) {
13 // CommonJS
14 module.exports = function (root, $) {
15 if ( ! root ) {
16 root = window;
17 }
18
19 if ( ! $ || ! $.fn.dataTable ) {
20 $ = require('datatables.net-se')(root, $).$;
21 }
22
23 if ( ! $.fn.dataTable.Responsive ) {
24 require('datatables.net-responsive')(root, $);
25 }
26
27 return factory( $, root, root.document );
28 };
29 }
30 else {
31 // Browser
32 factory( jQuery, window, document );
33 }
34}(function( $, window, document, undefined ) {
35'use strict';
36var DataTable = $.fn.dataTable;
37
38
39var _display = DataTable.Responsive.display;
40var _original = _display.modal;
41var _modal = $(
42 '<div class="ui modal" role="dialog">'+
43 '<div class="header">'+
44 '<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>'+
45 '</div>'+
46 '<div class="content"/>'+
47 '</div>'
48);
49
50_display.modal = function ( options ) {
51 return function ( row, update, render ) {
52 if ( ! $.fn.modal ) {
53 _original( row, update, render );
54 }
55 else {
56 if ( ! update ) {
57 if ( options && options.header ) {
58 _modal.find('div.header')
59 .empty()
60 .append( '<h4 class="title">'+options.header( row )+'</h4>' );
61 }
62
63 _modal.find( 'div.content' )
64 .empty()
65 .append( render() );
66
67 _modal
68 .appendTo( 'body' )
69 .modal('show');
70 }
71 }
72 };
73};
74
75
76return DataTable.Responsive;
77}));
Note: See TracBrowser for help on using the repository browser.