r105387 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105386‎ | r105387 | r105388 >
Date:00:04, 7 December 2011
Author:preilly
Status:ok (Comments)
Tags:
Comment:
fix orientation issue with placeholder
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js
@@ -81,6 +81,11 @@
8282 pE.style.display = 'block';
8383 search.style.backgroundColor = 'transparent';
8484 }
 85+
 86+ if ( pE && search.value != '' ) {
 87+ pE.style.display = 'none';
 88+ }
 89+
8590 var removeResults = document.getElementById( 'remove-results' );
8691 if ( !removeResults ) {
8792 rrd = document.createElement( 'a' );

Comments

#Comment by Brion VIBBER (talk | contribs)   00:06, 7 December 2011

This fixes reappearance of the placeholder text when changing orientation. :)

Status & tagging log