r101201 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101200‎ | r101201 | r101202 >
Date:21:13, 28 October 2011
Author:preilly
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/javascripts/opensearch.js (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/views/layout/application.html.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/javascripts/opensearch.js
@@ -12,6 +12,9 @@
1313 var results = document.getElementById( 'results' );
1414 var search = document.getElementById( 'search' );
1515 var sq = document.getElementById( 'sq' );
 16+var iw = ( document.documentElement.clientWidth ) ? document.documentElement.clientWidth : document.body.clientWidth;
 17+sq.style.width = ( iw - 110 ) + pixels;
 18+search.style.width = ( iw - 140 ) + pixels;;
1619
1720 results.style.width = ( sq.offsetWidth - 2 ) + pixels;
1821 results.style.left = sq.offsetLeft + pixels;
Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/views/layout/application.html.php
@@ -18,7 +18,7 @@
1919 $endScriptTag = '"></script>';
2020 $javaScriptPath = $wgExtensionAssetsPath . '/MobileFrontend/javascripts/';
2121
22 -$openSearchScript = ( self::$isBetaGroupMember ) ? $startScriptTag . $javaScriptPath . 'opensearch.js?version=10282011120815' . $endScriptTag : '';
 22+$openSearchScript = ( self::$isBetaGroupMember ) ? $startScriptTag . $javaScriptPath . 'opensearch.js?version=10282011124415' . $endScriptTag : '';
2323
2424 $applicationHtml = <<<EOT
2525 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101191expand search bar to max widthpreilly20:49, 28 October 2011
r101198expand search bar to max widthpreilly21:01, 28 October 2011

Status & tagging log