r93629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93628‎ | r93629 | r93630 >
Date:16:02, 1 August 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
added cancel button to campain config edit form
Modified paths:
  • /trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php
@@ -46,6 +46,24 @@
4747
4848 /**
4949 * (non-PHPdoc)
 50+ * @see FormSpecialPage::getForm()
 51+ */
 52+ protected function getForm() {
 53+ $form = parent::getForm();
 54+ $form->addButton(
 55+ 'cancelEdit',
 56+ wfMsg( 'cancel' ),
 57+ 'cancelEdit',
 58+ array(
 59+ 'onclick' => 'window.location="' . SpecialPage::getTitleFor( 'UploadCampaigns' )->getFullURL() . '";return false;'
 60+ )
 61+ );
 62+
 63+ return $form;
 64+ }
 65+
 66+ /**
 67+ * (non-PHPdoc)
5068 * @see FormSpecialPage::getFormFields()
5169 */
5270 protected function getFormFields() {

Status & tagging log