File "qtranslatex_backend.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/js_composer/assets/js/vendors/qtranslatex_backend.js
File size: 580 bytes
MIME-type: text/plain
Charset: utf-8
(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 );