Tweaks to the AJAX license preview:
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 18 Jul 2007 19:19:50 +0000 (19:19 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 18 Jul 2007 19:19:50 +0000 (19:19 +0000)
commit336cb46167edf1049fb4309a682e98dd478beda2
tree36eadcdff18657c07bd304cdffad4b4f182779f0
parentbafbe61efdb80a975b6c22bab3784ba33b9e802f
Tweaks to the AJAX license preview:
* Rename 'licence' to 'license' for consistency with the rest of the code.
* The preview code was assuming simple templates with no parameters and no subst:s, which failed on most of the selections used now on Commons. Now doing a full pre-save transform and parse on {{$license}}, just as will be done on the final save.
* When selecting 'None' again after another option, the preview pane is now cleared.

A fun 'todo' might be to also pass the currently selected filename, if any, to the license preview. Some of the templates in use attempt to use the current-page-name variables to include a self-link. At the moment using a hardcoded 'Image:Sample.jpg' for the virtual title on the preview rendering.
RELEASE-NOTES
includes/DefaultSettings.php
includes/Setup.php
includes/SpecialUpload.php
skins/common/upload.js