// This file contains partial code extracted manually from sitepress-multilingual-cms/res/js/scripts.js
function fadeInAjxResp(spot, msg, err){
if(err != undefined){
col = jQuery(spot).css('color');
jQuery(spot).css('color','red');
}
jQuery(spot).text(msg); // Originally altering the "html" but we don't have the DOM purifier here so we'll just alter the "text" (enough for what we need).
jQuery(spot).fadeIn();
window.setTimeout(fadeOutAjxResp, 3000, spot);
if(err != undefined){
jQuery(spot).css('color',col);
}
}
function fadeOutAjxResp(spot){
jQuery(spot).fadeOut();
}
var icl_ajxloaderimg = '<img src="'+icl_ajxloaderimg_src+'" alt="loading" width="16" height="16" />';