Sindbad~EG File Manager

Current Path : /home/escuelai/public_html/eihu.edu.uy/wp-content/plugins/customizer-export-import/js/
Upload File :
Current File : /home/escuelai/public_html/eihu.edu.uy/wp-content/plugins/customizer-export-import/js/customizer.js

( function( $ ) {
	
	var CEI = {
	
		init: function()
		{
			$( 'input[name=cei-export-button]' ).on( 'click', CEI._export );
			$( 'input[name=cei-import-button]' ).on( 'click', CEI._import );
		},
	
		_export: function()
		{
			window.location.href = CEIConfig.customizerURL + '?cei-export=' + CEIConfig.exportNonce;
		},
	
		_import: function()
		{
			var win			= $( window ),
				body		= $( 'body' ),
				form		= $( '<form class="cei-form" method="POST" enctype="multipart/form-data"></form>' ),
				controls	= $( '.cei-import-controls' ),
				file		= $( 'input[name=cei-import-file]' ),
				message		= $( '.cei-uploading' );
			
			if ( '' == file.val() ) {
				alert( CEIl10n.emptyImport );
			}
			else {
				win.off( 'beforeunload' );
				body.append( form );
				form.append( controls );
				message.show();
				form.submit();
			}
		}
	};
	
	$( CEI.init );
	
})( jQuery );

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists