http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97563

Revision: 97563
Author:   preilly
Date:     2011-09-19 21:49:08 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
remove search based functions

Modified Paths:
--------------
    branches/wmf/1.17wmf1/extensions/MobileFrontend/javascripts/application.js

Modified: 
branches/wmf/1.17wmf1/extensions/MobileFrontend/javascripts/application.js
===================================================================
--- branches/wmf/1.17wmf1/extensions/MobileFrontend/javascripts/application.js  
2011-09-19 21:30:10 UTC (rev 97562)
+++ branches/wmf/1.17wmf1/extensions/MobileFrontend/javascripts/application.js  
2011-09-19 21:49:08 UTC (rev 97563)
@@ -1,32 +1,3 @@
-var search = document.getElementById( 'search' );
-var clearSearch = document.getElementById( 'clearsearch' );
-
-initClearSearchLink();
-
-function initClearSearchLink() {
-    clearSearch.setAttribute( 'title','Clear' );
-    clearSearch.addEventListener( 'mousedown', clearSearchBox, true );
-    search.addEventListener( 'keyup', _handleClearSearchLink, false );
-}
-
-function _handleClearSearchLink() {
-    if ( clearSearch ) {
-       if ( search.value.length > 0 ) {
-               clearSearch.style.display = 'block';
-        } else {
-               clearSearch.style.display = 'none';
-        }
-       }
-}
-
-function clearSearchBox( event ) {
-    search.value = '';
-    clearSearch.style.display = 'none';
-       if ( event ) {
-               event.preventDefault();
-       }
-}
-
 // I don't think this makes sense. Loading this here means that this button 
 // won't function until the page is loaded. It would probably be an 
 // improvement to just attach an onclick straight into the html.
@@ -112,4 +83,4 @@
                var s = document.getElementById( d[i] + section_id ).style;
                s.display = s.display == 'block' ? 'none' : 'block';
        }
-}
\ No newline at end of file
+}


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to