Last modified: 2011-12-14 17:37:33 UTC
If a user attempts to move a page to the same title, he sees the error message selfmove (Source and destination titles are the same; cannot move a page over itself.). This can be avoided by disabling (graying out) the "Move page" button until a different name is entered.
* disable on load from JS (not from PHP, to avoid non-JS viewers from being unable to move) * on key touch if not empty, enable, id empty, disable. Will do soon.
Do we /ever/ disable buttons in JS? I don't think so, the save page button isn't grayed out if the page hasn't been edited, for example, so why is this a special case? If the user submits invalid input, they get an error message, I don't see what the problem is. Marking as an enhancement, because it is, but I'm not sure whether it makes sense to start disabling buttons.