golden hour
/var/www/html/wp-content/plugins/the-events-calendar/common/src/resources/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin
-
Del
OK
admin-date-preview.js
1.13 KB
Del
OK
admin-date-preview.min.js
349 B
Del
OK
admin-log-controls.js
4.13 KB
Del
OK
admin-log-controls.min.js
1.3 KB
Del
OK
app
-
Del
OK
app-shop.js
268 B
Del
OK
app-shop.min.js
182 B
Del
OK
bumpdown.js
8.25 KB
Del
OK
bumpdown.min.js
4.15 KB
Del
OK
buttonset.js
2.4 KB
Del
OK
buttonset.min.js
1.29 KB
Del
OK
dependency.js
10.48 KB
Del
OK
dependency.min.js
4.55 KB
Del
OK
dialog.js
1.7 KB
Del
OK
dialog.min.js
939 B
Del
OK
dropdowns.js
14.99 KB
Del
OK
dropdowns.min.js
6.43 KB
Del
OK
notice-dismiss.js
1.04 KB
Del
OK
notice-dismiss.min.js
519 B
Del
OK
pue-notices.js
887 B
Del
OK
pue-notices.min.js
382 B
Del
OK
select2-after.js
1.46 KB
Del
OK
select2-after.min.js
816 B
Del
OK
timepicker.js
2.71 KB
Del
OK
timepicker.min.js
1.38 KB
Del
OK
tooltip.js
1.4 KB
Del
OK
tooltip.min.js
689 B
Del
OK
tribe-common.js
803 B
Del
OK
tribe-common.min.js
321 B
Del
OK
tribe-datatables.js
4.76 KB
Del
OK
tribe-datatables.min.js
2.82 KB
Del
OK
underscore-after.js
920 B
Del
OK
underscore-after.min.js
127 B
Del
OK
underscore-before.js
1.25 KB
Del
OK
underscore-before.min.js
265 B
Del
OK
utils
-
Del
OK
utils-camelcase.js
2.4 KB
Del
OK
utils-camelcase.min.js
778 B
Del
OK
validation.js
20.06 KB
Del
OK
validation.min.js
6.85 KB
Del
OK
Edit: tribe-datatables.js
window.tribe_data_table = null; ( function( $ ) { 'use strict'; $.fn.tribeDataTable = function( options ) { var $document = $( document ); var settings = $.extend( { language: { lengthMenu : tribe_l10n_datatables.length_menu, emptyTable : tribe_l10n_datatables.emptyTable, info : tribe_l10n_datatables.info, infoEmpty : tribe_l10n_datatables.info_empty, infoFiltered : tribe_l10n_datatables.info_filtered, zeroRecords : tribe_l10n_datatables.zero_records, search : tribe_l10n_datatables.search, paginate : { next : tribe_l10n_datatables.pagination.next, previous : tribe_l10n_datatables.pagination.previous, }, aria : { sortAscending : tribe_l10n_datatables.aria.sort_ascending, sortDescending : tribe_l10n_datatables.aria.sort_descending }, select: { rows: { '0': tribe_l10n_datatables.select.rows[0], _: tribe_l10n_datatables.select.rows._, '1': tribe_l10n_datatables.select.rows[1] } } }, lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, tribe_l10n_datatables.pagination.all ] ], }, options ); var only_data = false; if ( this.is( '.dataTable' ) ) { only_data = true; } var methods = { setVisibleCheckboxes: function( $table, table, value ) { var $thead = $table.find( 'thead' ); var $tfoot = $table.find( 'tfoot' ); var $header_checkbox = $thead.find( '.column-cb input:checkbox' ); var $footer_checkbox = $tfoot.find( '.column-cb input:checkbox' ); // Defaults to false if ( 'undefined' === typeof value ) { value = false; } $table.find( 'tbody .check-column input:checkbox' ).prop( 'checked', value ); $header_checkbox.prop( 'checked', value ); $footer_checkbox.prop( 'checked', value ); if ( value ) { table.rows( { page: 'current' } ).select(); methods.addGlobalCheckboxLine( $table, table ) } else { $table.find( '.tribe-datatables-all-pages-checkbox' ).remove(); table.rows().deselect(); } }, addGlobalCheckboxLine: function( $table, table ) { // Remove the Previous All Pages checkbox $table.find( '.tribe-datatables-all-pages-checkbox' ).remove(); var $thead = $table.find( 'thead' ); var $tfoot = $table.find( 'tfoot' ); var $header_checkbox = $thead.find( '.column-cb input:checkbox' ); var $footer_checkbox = $tfoot.find( '.column-cb input:checkbox' ); var $link = $( '<a>' ).attr( 'href', '#select-all' ).text( tribe_l10n_datatables.select_all_link ); var $text = $( '<div>' ).css( 'text-align', 'center' ).text( tribe_l10n_datatables.all_selected_text ).append( $link ); var $column = $( '<th>' ).attr( 'colspan', table.columns()[0].length ).append( $text ); var $row = $( '<tr>' ).addClass( 'tribe-datatables-all-pages-checkbox' ).append( $column ); $link.one( 'click', function( event ) { // Selects all items (even the not visible ones) table.rows().select(); $link.text( tribe_l10n_datatables.clear_selection ).one( 'click', function() { methods.setVisibleCheckboxes( $table, table, false ); event.preventDefault(); return false; } ); event.preventDefault(); return false; } ); $thead.append( $row ); }, togglePageCheckbox: function( $checkbox, table ) { var $table = $checkbox.closest( '.dataTable' ); methods.setVisibleCheckboxes( $table, table, $checkbox.is( ':checked' ) ); }, toggleRowCheckbox: function( $checkbox, table ) { var $row = $checkbox.closest( 'tr' ); if ( $checkbox.is( ':checked' ) ) { table.row( $row ).select(); return; } table.row( $row ).deselect(); $checkbox.closest( '.dataTable' ).find( 'thead .column-cb input:checkbox, tfoot .column-cb input:checkbox' ).prop( 'checked', false ); } }; return this.each( function() { var $el = $( this ); var table; if ( only_data ) { table = $el.DataTable(); } else { table = $el.DataTable( settings ); } window.tribe_data_table = table; if ( 'undefined' !== typeof settings.data ) { table.clear().draw(); table.rows.add( settings.data ); table.draw(); } var resetSelection = function ( event, settings ) { methods.setVisibleCheckboxes( $el, table, false ); }; // If anything happens to the page, we reset the Checked ones $el.on( { 'order.dt': resetSelection, 'search.dt': resetSelection, 'length.dt': resetSelection } ); $el.on( 'click', 'thead .column-cb input:checkbox, tfoot .column-cb input:checkbox', function() { methods.togglePageCheckbox( $( this ), table ); } ); $el.on( 'click', 'tbody .check-column input:checkbox', function() { methods.toggleRowCheckbox( $( this ), table ); } ); } ); }; } )( jQuery );
Save