Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -793,8 +793,12 @@ |
794 | 794 | |
795 | 795 | // Set warning |
796 | 796 | var thetd = destFile.parentNode ; |
797 | | -// thetd.innerHTML += url ; |
798 | | - thetd.innerHTML += "<span id='existsWarning' style='color:red'> A file with this name already exists; uploading under the same name will replace it!</span>" ; |
| 797 | + var nn = document.createElement("span") ; |
| 798 | + nn.id = "existsWarning" ; |
| 799 | + nn.style.color = "red" ; |
| 800 | + var nt = document.createTextNode(" A file with this name already exists; uploading under the same name will replace it!"); |
| 801 | + nn.appendChild ( nt ) ; |
| 802 | + thetd.appendChild ( nn ) ; |
799 | 803 | |
800 | 804 | // Restore the filename |
801 | 805 | var destFile = document.getElementById('wpDestFile'); |