Permalink
Browse files

mwext: fixed vote_button css to look nicer

  • Loading branch information...
1 parent 2e1a547 commit 72d553170399b45ea48a6de533948d795c6ef056 B. Thomas Adler committed Aug 14, 2009
Showing with 7 additions and 12 deletions.
  1. +4 −11 css/trust.css
  2. +3 −1 includes/WikiTrustBase.php
View
@@ -44,19 +44,12 @@
#vote-button-done {
visibility: hidden;
- position: absolute;
- top: 10px;
- left: 500px;
+ position: relative;
+ text-align: right;
}
#vote-button {
- position: absolute;
- top: 10px;
- left: 500px;
+ position: relative;
+ text-align: right;
}
-#text-button {
- position: absolute;
- top: 10px;
- left: 300px;
-}
@@ -158,7 +158,7 @@ static function vote_showButton(&$text)
$text = "<div id='vote-button'><input type='button' name='vote' "
. "value='"
. wfMsgNoTrans("wgTrustVote")
- . "' onclick='startVote()' /></div><div id='vote-button-done'>"
+ . "' onclick='startVote()' /></div><div id='vote-button-done' style='display: none'>"
. wfMsgNoTrans("wgTrustVoteDone")
. "</div>"
. $text;
@@ -231,6 +231,8 @@ static function color_getColorData($rev_id)
$colored_text = gzinflate(substr($gzdata, 10));
}
+ wfWikiTrustDebug(__FILE__ . ":" . __LINE__ . "/* $colored_text */");
+
$res = $dbr->select('wikitrust_global', 'median', array(), array());
if ($res && $dbr->numRows($res) > 0) {
$row = $dbr->fetchRow($res);

0 comments on commit 72d5531

Please sign in to comment.