Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : meta-custom-schedule.js
( function () {

	'use strict';

	let metaBoxEventHub = new Vue(),
		settings = window.jet_abaf_custom_schedule;

	Vue.component( 'jet-abaf-custom-schedule', {
		template: '#jet-abaf-settings-schedule',
		mixins: [ scheduleManager, dateMethods ],
		data: function() {
			return {
				settings: settings.custom_schedule,
			};
		},
		mounted: function () {
			if ( ! this.settings.days_off ) {
				this.settings.days_off = []
			}
		},
		methods: {
			updateSetting: function( value, key ) {
				this.$set( this.settings, key, value );

				this.$nextTick( function() {
					this.saveSettings();
				} );
			},
			saveSettings: function() {
				metaBoxEventHub.$emit( 'update-settings', this.settings, 'custom_schedule' );
			}
		}
	} );

	new Vue( {
		el: '#jet-abaf-custom-schedule-meta-box',
		mixins: [ jetABAFPostMetaManager ],
		data: function() {
			return {
				settings: settings,
			};
		},
		mounted: function () {
			this.$nextTick(function () {
				metaBoxEventHub.$on( 'update-settings', this.updateScheduleSettings, 'custom_schedule' );
			} )
		},
		methods: {
			updateScheduleSettings: function( settings, key ) {
				let updSettings = Object.assign( this.settings[ key ], settings );

				this.$set( this.settings, key, updSettings );
				this.$set( this, 'meta', this.settings );

				this.$nextTick( function () {
					this.saveSettings();
				} );
			},
			updateSetting: function( value, key ) {
				this.$set( this.settings.custom_schedule, key, value );
				this.$set( this, 'meta', this.settings );

				this.$nextTick( function() {
					this.saveSettings();
				} );
			},
		}
	} );

} )();
© 2026 GrazzMean