Mercurial > hg > digilib-old
comparison client/digitallibrary/greyskin/debug.js @ 427:84aee0e6d64e
better alert
author | hertzhaft |
---|---|
date | Thu, 22 Dec 2005 11:21:35 +0100 |
parents | 68c26335e880 |
children | b9b8e54ed3bb |
comparison
equal
deleted
inserted
replaced
426:7207a5549301 | 427:84aee0e6d64e |
---|---|
12 } | 12 } |
13 | 13 |
14 function appendNewElement(node, tagname, content) { | 14 function appendNewElement(node, tagname, content) { |
15 // appends a new element to "node", adding content if given | 15 // appends a new element to "node", adding content if given |
16 if (!node.appendChild) { | 16 if (!node.appendChild) { |
17 alert("Could not append: " + typeof(node)); | 17 alert("Could not append '" + tagname + "' to " + typeof(node)); |
18 return null; | 18 return null; |
19 } | 19 } |
20 return node.appendChild(newElement(tagname, content)); | 20 return node.appendChild(newElement(tagname, content)); |
21 } | 21 } |
22 | 22 |