HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/js_composer/assets/js/vendors/qtranslatex_backend.js
( function ( $ ) {
	'use strict';

	function hookLanguageSwitch ( activeLang ) {
		var $inline_href = $( '.wpb_switch-to-front-composer' );
		if ( !$inline_href.data( 'raw-url' ) ) {
			$inline_href.data( 'raw-url', $inline_href.attr( 'href' ) );
		}
		var new_url = $inline_href.data( 'raw-url' ) + '&lang=' + activeLang;
		$inline_href.attr( 'href', new_url );

		vc.shortcodes.fetch({ reset: true });
	}

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

		qtranslateManager.addLanguageSwitchListener( hookLanguageSwitch );
	});
})( window.jQuery );