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: timepicker.js
/** * @todo Move this to use the new `tribe` object, tribe.timepicker * @type {object} */ var tribe_timepickers = tribe_timepickers || {}; ( function ( $, obj ) { 'use strict'; obj.selector = { container : '.tribe-datetime-block', timepicker : '.tribe-timepicker', all_day : '#allDayCheckbox', timezone : '.tribe-field-timezone', input : 'select, input', }; obj.timepicker = { opts: { forceRoundTime: false, step: 30, } }; obj.timezone = { link: _.template( '<a href="#" class="tribe-change-timezone"><%= label %> <%= timezone %></a>' ), }; obj.$ = {}; obj.container = function( k, container ) { var $container = $( container ); var $allDay = $container.find( obj.selector.all_day ); var $timepicker = $container.find( obj.selector.timepicker ); var $timezone = $container.find( obj.selector.timezone ).not( obj.selector.input ); var $input = $container.find( obj.selector.timezone ).filter( obj.selector.input ); // Create the Link var $timezoneLink = $( obj.timezone.link( { label: $input.data( 'timezoneLabel' ), timezone: $input.data( 'timezoneValue' ) } ) ); // Toggle Timepickers on All Day change $allDay.on( 'change', function() { if ( true === $allDay.prop( 'checked' ) ) { $timepicker.hide(); } else { $timepicker.show(); } } ).trigger( 'change' ); obj.setup_timepickers( $timepicker ); // Attach a Click action the Timezone Link $timezoneLink.on( 'click', function( e ) { $timezone = $container.find( obj.selector.timezone ).filter( '.select2-container' ); e.preventDefault(); $timezoneLink.hide(); $timezone.show(); } ); // Append the Link to the Timezone $input.before( $timezoneLink ); }; obj.init = function() { obj.$.containers = $( obj.selector.container ); obj.$.containers.each( obj.container ); }; /** * Initializes timepickers */ obj.setup_timepickers = function( $timepickers ) { // Setup all Timepickers $timepickers.each( function() { var $item = $( this ); var opts = $.extend( {}, obj.timepicker.opts ); if ( $item.data( 'format' ) ) { opts.timeFormat = $item.data( 'format' ); } // By default the step is 15 if ( $item.data( 'step' ) ) { opts.step = $item.data( 'step' ); } // Passing anything but 0 or 'false' will make it round to the nearest step var round = $item.data( 'round' ); if ( round && 0 != round && 'false' !== round ) { opts.forceRoundTime = true; } if ( 'undefined' !== typeof $.fn.tribeTimepicker ) { $item.tribeTimepicker( opts ).trigger( 'change' ); } else { // @deprecated 4.6.1 $item.timepicker( opts ).trigger( 'change' ); } } ); }; $( obj.init ); } ( jQuery, tribe_timepickers ) );
Save