From cde7213898d1cb3049d5c9d2a442c3fd67981aa9 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 7 Nov 2008 15:52:22 +0000 Subject: [PATCH] Changed the button elements to input elements to workaround IE bug. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@313 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wrreport.body.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/wrreport.body.php b/wrreport.body.php index 18ddb94..7a8a5b3 100644 --- a/wrreport.body.php +++ b/wrreport.body.php @@ -94,10 +94,16 @@ function wrReportFormRender($hide_save_button = TRUE, $page_title = NULL, $date_ $description_html = htmlspecialchars($description); // Buttons - $buttons = ''; - if (!$hide_save_button) $buttons .= ''; + // I would like to do it this way, but due to a bug of internet explorer, the '; + // if (!$hide_save_button) $buttons .= ''; + // Workaround: User + $buttons = ' '; + if (!$hide_save_button) $buttons .= ''; $form = << @@ -309,7 +315,11 @@ class WrReport extends SpecialPage { // Get request data $action = $wgRequest->getText('action'); - if ($action === '') $action = 'view'; + if (!$action) { + if ($wgRequest->getVal('preview')) $action = 'preview'; + elseif ($wgRequest->getVal('store')) $action = 'store'; + else $action = 'view'; + } if ($override_action) $action = $override_action; // Show error message -- 2.30.2