web/wp-content/plugins/exec-php/js/common.js
branchwordpress
changeset 123 561aa6d282f6
equal deleted inserted replaced
112:fb7cd02b9848 123:561aa6d282f6
       
     1 function ExecPhp_setMessage(heading, text)
       
     2 {
       
     3 	var message = '<p><strong>' + heading + '</strong> ' + text + '</p>';
       
     4 	var parent = document.getElementById(execphpCommonL10n.messageContainer);
       
     5 	try
       
     6 	{
       
     7 		container = document.createElement("div");
       
     8 		container.className = "updated fade";
       
     9 		container.innerHTML = container.innerHTML + message;
       
    10 		parent.appendChild(container);
       
    11 	}
       
    12 	catch(e) {;}
       
    13 }