scripts.js
21 lines
| 1 | // This file contains partial code extracted manually from sitepress-multilingual-cms/res/js/scripts.js |
| 2 | |
| 3 | function fadeInAjxResp(spot, msg, err){ |
| 4 | if(err != undefined){ |
| 5 | col = jQuery(spot).css('color'); |
| 6 | jQuery(spot).css('color','red'); |
| 7 | } |
| 8 | 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). |
| 9 | jQuery(spot).fadeIn(); |
| 10 | window.setTimeout(fadeOutAjxResp, 3000, spot); |
| 11 | if(err != undefined){ |
| 12 | jQuery(spot).css('color',col); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | function fadeOutAjxResp(spot){ |
| 17 | jQuery(spot).fadeOut(); |
| 18 | } |
| 19 | |
| 20 | var icl_ajxloaderimg = '<img src="'+icl_ajxloaderimg_src+'" alt="loading" width="16" height="16" />'; |
| 21 |