选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
查看 admin.js - 文件管理器
👁 查看:admin.js
路径:/virtual/bigbrother/public_html/hyper-tool.com-1759213598/wp-content/plugins/mw-wp-form/js/admin.js
大小:2.75 KB · 修改:2023-12-07 15:50:02 · 权限:0747 · 可写
jQuery( function( $ ) {

	$( '#mw-wp-form_validation' ).mw_wp_form_repeatable();

	/**
	 * 完了ページの入力エリアからオリジナルボタンを消去
	 */
	$( window ).on( 'load', function() {
		$( '#mw-wp-form_complete_message_metabox input[id^="qt_mw-wp-form_complete_message_mwform_"]' ).remove();
	} );

	/**
	 * フォームタグジェネレータ
	 */
	function mwform_create_shortcode( dialog_id ) {
		var attributes      = [];
		var shortcode_name  = dialog_id.replace( 'dialog-', '' );
		var element_content = null;

		$( '#' + dialog_id + ':first' ).find( 'input, textarea, select' ).each( function( i, e ) {
			var val;
			var name = $( e ).attr( 'name' );

			if ( name == 'element_content' ) {
				element_content = $( e ).val();
				return true; // continue
			}

			if ( $( e )[0].tagName.toLowerCase() == 'textarea' ) {
				val = $( e ).val().split( /\r\n|\r|\n/ );
				val = val.join( ',' );
			} else if ( $( e ).attr( 'type' ) === 'checkbox' ) {
				if ( $( e ).prop( 'checked' ) ) {
					val = $( e ).closest( ':checked' ).val();
				}
			} else {
				val = $( e ).val();
			}

			if ( name == 'name' && !val ) {
				val = generate_random_shortcode_name( shortcode_name );
			}
			if ( val ) {
				var attribute = name + '=\"' + val + '\"';
				attributes.push( attribute );
			}
		} );

		attributes = attributes.join( ' ' );
		if ( attributes ) {
			var shortcode = '[' + shortcode_name + ' ' + attributes + ']';
		} else {
			var shortcode = '[' + shortcode_name + ']';
		}

		if ( element_content !== null ) {
			shortcode += element_content + '[/' + shortcode_name + ']'
		}

		return shortcode;
	}

	function generate_random_shortcode_name( shortcode_name ) {
		return shortcode_name + '-' + Math.floor( Math.random() * 1000 );
	}

	$( '.mwform-dialog' ).dialog( {
		bgiframe: true,
		autoOpen: false,
		resizable: true,
		width: 500,
		buttons: {
			'Insert': function() {
				send_to_editor( mwform_create_shortcode( $( this ).attr( 'id' ) ) );
				$( this ).dialog( 'close' );
			},
			'Cancel': function() {
				$( this ).dialog( 'close' );
			}
		},
		open: function() {
		}
	} );

	$( '.add-mwform-btn .button' ).click( function() {
		var select = $( '.add-mwform-btn select' ).val();
		$( '#dialog-' + select ).dialog( 'open' );
	} );

	/**
	 * sortable
	 */
	$( '#mw-wp-form_validation .repeatable-boxes' ).sortable( {
		items : '> .repeatable-box',
		handle: '.sortable-icon-handle'
	} );

	/**
	 * 問い合わせ番号フィールド
	 */
	$( 'input[name="open_tracking_number_field"]' ).click( function() {
		var tracking_number_field = $( '#tracking_number_field' );
		var is_open = $( this ).prop( 'checked' );
		if ( is_open ) {
			tracking_number_field.removeAttr( 'disabled' );
		} else {
			tracking_number_field.attr( 'disabled', 'disabled' );
		}
	} );
} );
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ