MediaWiki talk:Common.js
From Wikimedia Incubator
[edit] Small things
- Most
ta[]are unnecessary since tooltips and access key are now defined by Mediawiki. Disable Javascript in your browser, compare all the tooltips and then leave only thoseta[]which are supposed to be different (because it's Incubator or simply because you don't like the original wording) (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)now can be simplified to(wgAction == 'edit' || wgAction == 'submit')- The
/* <pre> */part is totally obsolete
∴ Alex Smotrov 19:49, 10 August 2007 (UTC)
Done SPQRobin 20:38, 10 August 2007 (UTC)
[edit] Error because of missing Upload link
I'm not sure why I don't have «Upload» link (not enough edits or it was simply removed for everyone), but the code
function upload2dp() { document.getElementById("t-upload").firstChild.href = "/wiki/Incubator:Upload"; } addOnloadHook(upload2dp);
results in error. Please either remove it or add an additional check. Thank you ∴ Alex Smotrov 15:35, 11 September 2007 (UTC)
- Uploading is disabled, you need to upload at commons. -Markvondeegel 16:41, 11 September 2007 (UTC)
- @ Alex: I don't know why it doesn't works, I copied it from [1], and there it works. SPQRobin 13:11, 12 September 2007 (UTC)
- On nl.wp the upload link is present, so there is no error. I suspect that at some point someone requested the devs to remove the upload link entirely (Do you see the upload link on the left?) Then the code above is simply not required anymore and should be removed ∴ Alex Smotrov 15:02, 13 September 2007 (UTC)
I am going to try something with CSS and other JavaScript. I hope it works. SPQRobin 15:29, 13 September 2007 (UTC)
- On nl.wp the upload link is present, so there is no error. I suspect that at some point someone requested the devs to remove the upload link entirely (Do you see the upload link on the left?) Then the code above is simply not required anymore and should be removed ∴ Alex Smotrov 15:02, 13 September 2007 (UTC)
- @ Alex: I don't know why it doesn't works, I copied it from [1], and there it works. SPQRobin 13:11, 12 September 2007 (UTC)
[edit] AJAX SiteNotice
Hello, please remove the AJAX SiteNotice. It is no longer needed because the CentralNotice has been fixed to not hide the site notice. You may notice the site notice appears twice now. —Pathoschild 21:43:13, 16 November 2007 (UTC)
- As reported via IRC,
Done Cbrown1023 talk 00:03, 17 November 2007 (UTC)