Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/javascripts/opensearch.js |
— | — | @@ -52,6 +52,7 @@ |
53 | 53 | |
54 | 54 | if ( targ.className == "suggestion-result" || |
55 | 55 | targ.className == "search-result-item" || |
| 56 | + targ.className == "suggestions-result" || |
56 | 57 | targ.className == "sq-val-update" ) { |
57 | 58 | } else { |
58 | 59 | hideResults(); |
— | — | @@ -155,7 +156,7 @@ |
156 | 157 | var section = sections[i]; |
157 | 158 | var rel = i + 1; |
158 | 159 | section.value = section.value.replace( /^(?:\/\/|[^\/]+)*\//, '/' ); |
159 | | - html = html + "<div class=\"suggestions-result\" rel=\"" + rel + "\" title=\"" + section.label + "\"><a class=\"search-result-item\" href='" + section.value + "'>" + section.label + "</a><a class=\"sq-val-update\" href=\"javascript:sqValUpdate('" + section.label + "');\"> + </a></div>"; |
| 160 | + html = html + "<div class=\"suggestions-result\" rel=\"" + rel + "\" title=\"" + section.label + "\"><a class=\"sq-val-update\" href=\"javascript:sqValUpdate('" + section.label + "');\">+</a><a class=\"search-result-item\" href='" + section.value + "'>" + section.label + "</a></div>"; |
160 | 161 | if ( i < ( sections.length - 1 ) ) { |
161 | 162 | html = html + '<hr />'; |
162 | 163 | } |
Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/stylesheets/common.css |
— | — | @@ -27,6 +27,7 @@ |
28 | 28 | line-height: 1.8em; |
29 | 29 | padding: 0.01em 0.25em; |
30 | 30 | text-align: left; |
| 31 | + postion: relative; |
31 | 32 | } |
32 | 33 | |
33 | 34 | .suggestions-result a { |
— | — | @@ -54,10 +55,14 @@ |
55 | 56 | } |
56 | 57 | a.sq-val-update { |
57 | 58 | font-size: 1.3em; |
58 | | - font-weight:normal; |
| 59 | + display: block; |
| 60 | + font-weight: normal; |
59 | 61 | text-decoration: none; |
60 | 62 | color: #000000; |
61 | | - float: right; |
| 63 | + position: absolute; |
| 64 | + right: 0; |
| 65 | + width: 1.5em; |
| 66 | + text-align: center; |
62 | 67 | } |
63 | 68 | a.sq-val-update:link { |
64 | 69 | text-decoration: none; |
— | — | @@ -76,6 +81,11 @@ |
77 | 82 | color:#000000; |
78 | 83 | } |
79 | 84 | |
| 85 | +a.search-result-item { |
| 86 | + display: block; |
| 87 | + margin-right: 2em; |
| 88 | +} |
| 89 | + |
80 | 90 | #results { |
81 | 91 | display: none; |
82 | 92 | background-color: #ffffff; |
Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/views/layout/application.html.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | $endScriptTag = '"></script>'; |
20 | 20 | $javaScriptPath = $wgExtensionAssetsPath . '/MobileFrontend/javascripts/'; |
21 | 21 | |
22 | | -$openSearchScript = ( self::$isBetaGroupMember ) ? $startScriptTag . $javaScriptPath . 'opensearch.js?version=10312011124424' . $endScriptTag : ''; |
| 22 | +$openSearchScript = ( self::$isBetaGroupMember ) ? $startScriptTag . $javaScriptPath . 'opensearch.js?version=11022011124424' . $endScriptTag : ''; |
23 | 23 | |
24 | 24 | $applicationHtml = <<<EOT |
25 | 25 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | <head> |
29 | 29 | <title>{$htmlTitle}</title> |
30 | 30 | <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /> |
31 | | - <link href='{$wgExtensionAssetsPath}/MobileFrontend/stylesheets/common.css?version=10282011120827' media='all' rel='Stylesheet' type='text/css' /> |
| 31 | + <link href='{$wgExtensionAssetsPath}/MobileFrontend/stylesheets/common.css?version=11022011120827' media='all' rel='Stylesheet' type='text/css' /> |
32 | 32 | <link href='{$wgExtensionAssetsPath}/MobileFrontend/stylesheets/{$cssFileName}.css?version=10202011120715' media='all' rel='Stylesheet' type='text/css' /> |
33 | 33 | <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> |
34 | 34 | <meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> |