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

Revision: 97516
Author:   preilly
Date:     2011-09-19 17:33:19 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
fix for bug 30943 - "mobile view" link should not be shown when no sensible 
mobile view is available For now, it

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/MobileFrontend.php
    trunk/extensions/MobileFrontend/javascripts/application.js
    trunk/extensions/MobileFrontend/stylesheets/android.css
    trunk/extensions/MobileFrontend/stylesheets/blackberry.css
    trunk/extensions/MobileFrontend/stylesheets/default.css
    trunk/extensions/MobileFrontend/stylesheets/firefox.css
    trunk/extensions/MobileFrontend/stylesheets/iphone.css
    trunk/extensions/MobileFrontend/stylesheets/iphone2.css
    trunk/extensions/MobileFrontend/stylesheets/kindle.css
    trunk/extensions/MobileFrontend/stylesheets/nokia.css
    trunk/extensions/MobileFrontend/stylesheets/operamini.css
    trunk/extensions/MobileFrontend/stylesheets/palm_pre.css
    trunk/extensions/MobileFrontend/stylesheets/psp.css
    trunk/extensions/MobileFrontend/stylesheets/simple.css
    trunk/extensions/MobileFrontend/stylesheets/webkit.css
    trunk/extensions/MobileFrontend/stylesheets/webkit_old.css
    trunk/extensions/MobileFrontend/stylesheets/wii.css
    trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php

Modified: trunk/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.php  2011-09-19 17:00:42 UTC 
(rev 97515)
+++ trunk/extensions/MobileFrontend/MobileFrontend.php  2011-09-19 17:33:19 UTC 
(rev 97516)
@@ -73,7 +73,7 @@
 }
 
 class ExtMobileFrontend {
-       const VERSION = '0.5.63';
+       const VERSION = '0.5.64';
 
        /**
         * @var DOMDocument
@@ -190,12 +190,18 @@
        public function addMobileFooter( &$obj, &$tpl ) {
                global $wgRequest;
                wfProfileIn( __METHOD__ );
-               $footerlinks = $tpl->data['footerlinks'];
-               $mobileViewUrl = $wgRequest->escapeAppendQuery( 
'useformat=mobile' );
 
-               $tpl->set('mobileview', "<a href='{$mobileViewUrl}'>".wfMsg( 
'mobile-frontend-view')."</a>");
-               $footerlinks['places'][] = 'mobileview';
-               $tpl->set('footerlinks', $footerlinks);
+               $title = $obj->getTitle();
+               $isSpecial = $title->isSpecialPage();
+               
+               if ( ! $isSpecial ) {
+                       $footerlinks = $tpl->data['footerlinks'];
+                       $mobileViewUrl = $wgRequest->escapeAppendQuery( 
'useformat=mobile' );
+
+                       $tpl->set('mobileview', "<a 
href='{$mobileViewUrl}'>".wfMsg( 'mobile-frontend-view')."</a>");
+                       $footerlinks['places'][] = 'mobileview';
+                       $tpl->set('footerlinks', $footerlinks);
+               }
                wfProfileOut( __METHOD__ );
                return true;
        }

Modified: trunk/extensions/MobileFrontend/javascripts/application.js
===================================================================
--- trunk/extensions/MobileFrontend/javascripts/application.js  2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/javascripts/application.js  2011-09-19 
17:33:19 UTC (rev 97516)
@@ -1,6 +1,36 @@
 // Ideally, this would be loaded in the head and activated by a script at the 
bottom,
 // I think, rather than attached to an onload...
 window.onload = function() {
+       
+       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.
@@ -38,7 +68,7 @@
        window.scrollTo( 0, 1 );
 
        // This is a global. I don't know why.
-       decode = document.getElementById( 'searchField' );
+       decode = document.getElementById( 'search' );
        decode.value = unescape( decode.value );
        decode = document.getElementsByTagName( 'title' )[0];
        decode.innerHTML = unescape( decode.innerHTML );

Modified: trunk/extensions/MobileFrontend/stylesheets/android.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/android.css     2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/android.css     2011-09-19 
17:33:19 UTC (rev 97516)
@@ -273,3 +273,42 @@
   margin: -1px 0 0 0;
   background: white;
   padding: 0 5px 5px 5px; }
+
+#search {
+   border-top-width: 0px;
+   border-right-width: 0px;
+   border-bottom-width: 0px;
+   border-left-width: 0px;
+   outline-style: none;
+   outline-width: initial;
+   outline-color: initial;
+   height: 1.5em;
+}
+
+.divclearable {
+   border: 1px solid #888;
+   display: -moz-inline-stack;
+   display: inline-block;
+   zoom:1;
+   *display:inline;
+   vertical-align:middle;
+   height: 1.5em;
+   position: relative;
+}
+
+.clearlink {
+   background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+   background-position: center center;
+   cursor: pointer;
+   zoom:1;
+   position: absolute;
+   right: 0.25em;
+   top: 50%;
+   margin: 1px;
+   height: 12px;
+   width: 12px;
+   margin-top: -6px;
+   z-index: 2;
+   border: 0px solid;
+   display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/blackberry.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/blackberry.css  2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/blackberry.css  2011-09-19 
17:33:19 UTC (rev 97516)
@@ -276,3 +276,42 @@
   margin: -1px 0 0 0;
   background: white;
   padding: 0 5px 5px 5px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/default.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/default.css     2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/default.css     2011-09-19 
17:33:19 UTC (rev 97516)
@@ -261,3 +261,42 @@
 .section_anchors,
 button.section_heading.hide {
   display: none; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/firefox.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/firefox.css     2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/firefox.css     2011-09-19 
17:33:19 UTC (rev 97516)
@@ -276,3 +276,42 @@
 
 #nav {
   margin-top: 8px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/iphone.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/iphone.css      2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/iphone.css      2011-09-19 
17:33:19 UTC (rev 97516)
@@ -302,3 +302,42 @@
 
 #header {
   max-width: 290px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/iphone2.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/iphone2.css     2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/iphone2.css     2011-09-19 
17:33:19 UTC (rev 97516)
@@ -276,3 +276,42 @@
 
 #header {
   max-width: 290px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/kindle.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/kindle.css      2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/kindle.css      2011-09-19 
17:33:19 UTC (rev 97516)
@@ -92,3 +92,42 @@
 
 body {
   line-height: 120%; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/nokia.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/nokia.css       2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/nokia.css       2011-09-19 
17:33:19 UTC (rev 97516)
@@ -276,3 +276,42 @@
   margin: -1px 0 0 0;
   background: white;
   padding: 0 5px 5px 5px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/operamini.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/operamini.css   2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/operamini.css   2011-09-19 
17:33:19 UTC (rev 97516)
@@ -302,3 +302,42 @@
 
 span.idx {
   display: none; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/palm_pre.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/palm_pre.css    2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/palm_pre.css    2011-09-19 
17:33:19 UTC (rev 97516)
@@ -287,3 +287,42 @@
 
 body {
   font-size: 14px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/psp.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/psp.css 2011-09-19 17:00:42 UTC 
(rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/psp.css 2011-09-19 17:33:19 UTC 
(rev 97516)
@@ -329,3 +329,42 @@
 
 span.idx {
   display: none; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/simple.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/simple.css      2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/simple.css      2011-09-19 
17:33:19 UTC (rev 97516)
@@ -299,3 +299,42 @@
 a.arrow {
   float: right;
   margin-right: 5px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/webkit.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/webkit.css      2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/webkit.css      2011-09-19 
17:33:19 UTC (rev 97516)
@@ -273,3 +273,42 @@
   margin: -1px 0 0 0;
   background: white;
   padding: 0 5px 5px 5px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}

Modified: trunk/extensions/MobileFrontend/stylesheets/webkit_old.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/webkit_old.css  2011-09-19 
17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/webkit_old.css  2011-09-19 
17:33:19 UTC (rev 97516)
@@ -284,3 +284,42 @@
   margin: -1px 0 0 0;
   background: white;
   padding: 0 5px 5px 5px; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/stylesheets/wii.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/wii.css 2011-09-19 17:00:42 UTC 
(rev 97515)
+++ trunk/extensions/MobileFrontend/stylesheets/wii.css 2011-09-19 17:33:19 UTC 
(rev 97516)
@@ -259,3 +259,42 @@
 .section_anchors,
 button.section_heading.hide {
   display: none; }
+
+#search {
+    border-top-width: 0px;
+    border-right-width: 0px;
+    border-bottom-width: 0px;
+    border-left-width: 0px;
+    outline-style: none;
+    outline-width: initial;
+    outline-color: initial;
+    height: 1.5em;
+}
+
+.divclearable {
+    border: 1px solid #888;
+    display: -moz-inline-stack;
+    display: inline-block;
+    zoom:1;
+    *display:inline;
+    vertical-align:middle;
+    height: 1.5em;
+    position: relative;
+}
+
+.clearlink {
+    background: url(images/close-button.png) no-repeat scroll 0 0 transparent;
+    background-position: center center;
+    cursor: pointer;
+    zoom:1;
+    position: absolute;
+    right: 0.25em;
+    top: 50%;
+    margin: 1px;
+    height: 12px;
+    width: 12px;
+    margin-top: -6px;
+    z-index: 2;
+    border: 0px solid;
+    display: none;
+}
\ No newline at end of file

Modified: trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php
===================================================================
--- trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php        
2011-09-19 17:00:42 UTC (rev 97515)
+++ trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php        
2011-09-19 17:33:19 UTC (rev 97516)
@@ -15,7 +15,10 @@
        <img width="35" height="22" alt='Logo' id='logo' 
src='{$wgMobileFrontendLogo}' />
     <form action='{$scriptUrl}' class='search_bar' method='get'>
       <input type="hidden" value="Special:Search" name="title" />
-      <input id='searchField' name='search' size='28' type='search' 
value='{$searchField}' />
+               <div id="sq" class="divclearable">
+                   <input type="text" name="search" id="search" size="28" 
value="{$searchField}" />
+                   <div class="clearlink" id="clearsearch"></div>
+               </div>
       <button id='goButton' type='submit'></button>
     </form>
   </div>


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

Reply via email to