????

Your IP : 3.140.195.205


Current Path : /home2/morganrand/.trash/js_composer.1/assets/js/vendors/
Upload File :
Current File : /home2/morganrand/.trash/js_composer.1/assets/js/vendors/qtranslatex_backend.js

(function ( $ ) {
	$( function () {
		var Manager = qTranslateConfig.js.get_qtx();

		Manager.addLanguageSwitchListener( hookLanguageSwitch );
	} );

	function hookLanguageSwitch( activeLang ) {
		var $inlineHref = $( '.wpb_switch-to-front-composer' );
		if ( ! $inlineHref.data( 'raw-url' ) ) {
			$inlineHref.data( 'raw-url', $inlineHref.attr( 'href' ) );
		}
		var newUrl = $inlineHref.data( 'raw-url' ) + '&lang=' + activeLang;
		$inlineHref.attr( 'href', newUrl );
		vc.shortcodes.fetch( { reset: true } );
	}
})( window.jQuery );