Index: branches/new-upload/phase3/skins/common/wikibits.js |
— | — | @@ -442,12 +442,18 @@ |
443 | 443 | } |
444 | 444 | //hide and show appropriate upload sizes |
445 | 445 | if(idb == 'wpUploadFileURL'){ |
446 | | - document.getElementById('mw-upload-maxfilesize').style.display = "none"; |
447 | | - document.getElementById('mw-upload-maxfilesize-url').style.display = "block"; |
| 446 | + var e = document.getElementById('mw-upload-maxfilesize'); |
| 447 | + if(e) e.style.display = "none"; |
| 448 | + |
| 449 | + var e = document.getElementById('mw-upload-maxfilesize-url'); |
| 450 | + if(e) e..style.display = "block"; |
448 | 451 | } |
449 | 452 | if(idb == 'wpUploadFile'){ |
450 | | - document.getElementById('mw-upload-maxfilesize-url').style.display = "none"; |
451 | | - document.getElementById('mw-upload-maxfilesize').style.display = "block"; |
| 453 | + var e = document.getElementById('mw-upload-maxfilesize-url'); |
| 454 | + if(e) e.style.display = "none"; |
| 455 | + |
| 456 | + var e = document.getElementById('mw-upload-maxfilesize'); |
| 457 | + if(e) e.style.display = "block"; |
452 | 458 | } |
453 | 459 | document.getElementById(ida).disabled=true; |
454 | 460 | document.getElementById(idb).disabled=false; |