From: Magnus Manske Date: Sun, 1 Jul 2007 13:38:29 +0000 (+0000) Subject: making better use of DOM X-Git-Tag: 1.31.0-rc.0~52304 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=359853c2cad8619bf110c9aa094fdc26600f26ef;p=lhc%2Fweb%2Fwiklou.git making better use of DOM --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 7cbe0038c8..a496e24125 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -793,8 +793,12 @@ function checkFileExists () { // Set warning var thetd = destFile.parentNode ; -// thetd.innerHTML += url ; - thetd.innerHTML += " A file with this name already exists; uploading under the same name will replace it!" ; + var nn = document.createElement("span") ; + nn.id = "existsWarning" ; + nn.style.color = "red" ; + var nt = document.createTextNode(" A file with this name already exists; uploading under the same name will replace it!"); + nn.appendChild ( nt ) ; + thetd.appendChild ( nn ) ; // Restore the filename var destFile = document.getElementById('wpDestFile');