web/wp-content/plugins/exec-php/js/common.js
author Anthony Ly <anthonyly.com@gmail.com>
Mon, 19 Nov 2012 18:26:13 +0100
changeset 194 32102edaa81b
parent 136 bde1974c263b
permissions -rw-r--r--
MAJ wordpress et ajout de plugin

function ExecPhp_setMessage(heading, text)
{
	var message = '<p><strong>' + heading + '</strong> ' + text + '</p>';
	var parent = document.getElementById(execphpCommonL10n.messageContainer);
	try
	{
		container = document.createElement("div");
		container.className = "updated fade";
		container.innerHTML = container.innerHTML + message;
		parent.appendChild(container);
	}
	catch(e) {;}
}