r113831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113830‎ | r113831 | r113832 >
Date:18:38, 14 March 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
follow up to r113830

fix indent
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js
@@ -107,14 +107,14 @@
108108
109109 var performSearch = function(ev) {
110110 ev.preventDefault();
111 - clearTimeout( timer );
112 - term = search.value;
113 - if ( term.length < 1 ) {
114 - results.innerHTML = '';
115 - } else {
116 - term = encodeURIComponent( term );
117 - timer = setTimeout( function () { searchApi( term ); }, typingDelay );
118 - }
 111+ clearTimeout( timer );
 112+ term = search.value;
 113+ if ( term.length < 1 ) {
 114+ results.innerHTML = '';
 115+ } else {
 116+ term = encodeURIComponent( term );
 117+ timer = setTimeout( function () { searchApi( term ); }, typingDelay );
 118+ }
119119 };
120120 u( search ).bind( 'keyup', performSearch );
121121 u( document.getElementById( 'searchForm' ) ).bind( 'submit', performSearch );

Follow-up revisions

RevisionCommit summaryAuthorDate
r114202MFT r113807, r113831, r113832, r113865, r113866, r113870, r113871, r113872, r...awjrichards22:23, 19 March 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113830allow search to be triggered on a blur and submit event...jdlrobson18:37, 14 March 2012

Status & tagging log