Revert r30162 for now.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Jan 2008 00:54:50 +0000 (00:54 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Jan 2008 00:54:50 +0000 (00:54 +0000)
commitc089260cd7170c21299e7c7df269f3f01786e723
treeecb1f9c159f9cd9bc16a552826c0ef8865ce8831
parentf5c5abd1eade5be126b5aa97f4a66dae21c791c8
Revert r30162 for now.

A problem with this is that it *un*watches a previously watched image under the following
circumstances:

* 'watch pages I edit' is not enabled (eg, default state)
* go to Special:Upload and select the file
* hit 'upload'

The initial check state is unchecked (since there was no initial destination name set), and this doesn't get updated to reflect the existing watch state of the previous image.

There are a couple possible ways around this. One is to compare the form's actual initial check state with the submitted check state and only apply an unwatch if there was a difference.

Another might be to do a watch state update via AJAX when a new destination filename is set in the form. This would allow the checkmark's default state to be set 'properly' for those with JS enabled in modern browsers.

Perhaps a combination should be used.
includes/SpecialUpload.php