HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u90323915 (5560665)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /homepages/31/d696029188/htdocs/qtranslate-x/admin/js/widgets-exec.js
/* executed for
 /wp-admin/widgets.php
*/
jQuery(document).ready(
function($){
	var qtx = qTranslateConfig.js.get_qtx();

	var onWidgetUpdate = function( evt, widget ){
		widget.find('span.in-widget-title').each(function(i,e){qtx.addDisplayHook(e);});
		widget.find("input[id^='widget-'][id$='-title']").each(function(i,e){qtx.refreshContentHook(e);});
		widget.find("textarea[id^='widget-text-'][id$='-text']").each(function(i,e){qtx.refreshContentHook(e);});
	}

	if(wpWidgets){
		$( document ).on( 'widget-added', onWidgetUpdate );
		$( document ).on( 'widget-updated', onWidgetUpdate );
	}

	var onLanguageSwitchAfter = function(){
		jQuery('#widgets-right .widget').each(function(){ wpWidgets.appendTitle(this); });
	}

	qtx.addLanguageSwitchAfterListener(onLanguageSwitchAfter);
});