second submit button on top, input instead of button for more consistent styling...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 24 May 2004 10:37:18 +0000 (10:37 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 24 May 2004 10:37:18 +0000 (10:37 +0000)
includes/PageHistory.php
stylesheets/common.css
stylesheets/monobook/main.css

index 49b42f3..e95ad39 100644 (file)
@@ -77,6 +77,10 @@ class PageHistory {
                        $this->mTitle->getPrefixedText(),
                        "action=history", $atend );
                $s = $numbar;
+               $this->submitbuttonhtml = ( $this->linesonpage > 1) ? '<li class="histsubmitli">
+               <input class="historysubmit" type="submit" accesskey="'.wfMsg('accesskey-compareselectedversions').
+                       '" title="'.wfMsg('tooltip-compareselectedversions').'" value="'.wfMsg('compareselectedversions')."\" /></li>" :
+                       '';
                $s .= $this->beginHistoryList();
                $counter = 1;
                if( $offset == 0 ){
@@ -113,6 +117,7 @@ class PageHistory {
                $s .="\n<form id=\"pagehistory\" name=\"pagehistory\" action=\"" . $wgTitle->getFullURL("-") . "\" method=\"get\">";
                $s .= "<input type=\"hidden\" name=\"title\" value=\"".htmlspecialchars($wgTitle->getPrefixedDbKey())."\"/>\n";
                $s .= "" . "\n<ul>";
+               $s .= !empty($this->submitbuttonhtml) ? $this->submitbuttonhtml."\n":'';
                return $s;
        }
 
@@ -121,12 +126,8 @@ class PageHistory {
                $last = wfMsg( "last" );
 
                $s = $skip ? "" : preg_replace( "/!OLDID![0-9]+!/", $last, $this->lastline );
-               $s .= "</ul>\n";
-               if( $this->linesonpage > 1) {
-                       $s .= '<button type="submit" accesskey="'.wfMsg('accesskey-compareselectedversions').
-                       '" title="'.wfMsg('tooltip-compareselectedversions').'">'.wfMsg('compareselectedversions')."</button><br/><br/>\n";
-               }
-               $s .= "</form>\n";
+               $s .= !empty($this->submitbuttonhtml) ? $this->submitbuttonhtml."\n":'';
+               $s .= "</ul></form>\n";
                return $s;
        }
 
index 712e4fe..7061340 100644 (file)
@@ -77,6 +77,7 @@ div.tleft {
     background-color:#f9f9f9;
     border:1px dashed #aaaaaa;
 }
+#pagehistory li.histsubmitli { list-style: none }
 
 table.diff {
         background:white;
index b89a723..97234ec 100644 (file)
@@ -165,6 +165,11 @@ textarea {
         vertical-align: middle;
         padding: 0.2em;
     }
+    head:first-child+body input.historysubmit {
+        height: 1.9em !important;
+        padding: none !important;
+        vertical-align: middle;
+    }
 }
 input[type="radio"],
 input[type="checkbox"] { border:none; }
@@ -416,6 +421,7 @@ div.townBox dl dd {
     background-color:#f9f9f9;
     border:1px dashed #aaaaaa;
 }
+#pagehistory li.histsubmitli { list-style: none }
 /*
 ** Diff rendering
 */