Ticket #27521: 27521.2.diff
File 27521.2.diff, 4.1 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/themes.css
40 40 top: -3px; 41 41 } 42 42 43 .theme-navigation a{ 44 text-decoration:none; 45 } 46 43 47 /* Position admin messages */ 44 48 .themes-php div.updated, 45 49 .themes-php div.error { … … 1165 1169 border-radius: 2px; 1166 1170 border: none; 1167 1171 color: #fff; 1172 -moz-transition: color .1s ease-in, background .1s ease-in; 1173 -webkit-transition: color .1s ease-in, background .1s ease-in; 1174 transition: color .1s ease-in, background .1s ease-in; 1168 1175 } 1176 body.more-filters-opened .more-filters:hover, 1177 body.more-filters-opened .more-filters:focus { 1178 outline: 1px dotted rgb(46, 162, 204); 1179 background: #777; 1180 } 1181 body.more-filters-opened .more-filters:hover:before, 1182 body.more-filters-opened .more-filters:focus:before { 1183 background: #777; 1184 } 1185 1169 1186 .theme-install-php .theme-search { 1170 1187 position: absolute; 1171 1188 right: 10px; -
src/wp-admin/js/theme.js
269 269 expand: function( event ) { 270 270 var self = this; 271 271 272 272 273 event = event || window.event; 273 274 274 275 // 'enter' and 'space' keys expand the details view when a theme is :focused … … 303 304 return this.touchDrag = false; 304 305 } 305 306 307 // 'enter' and 'space' keys expand the details view when a theme is :focused 308 if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) { 309 return; 310 } 311 306 312 event.preventDefault(); 307 313 308 314 event = event || window.event; … … 799 805 search: function( event ) { 800 806 var options = {}; 801 807 808 802 809 // Clear on escape. 803 810 if ( event.type === 'keyup' && event.which === 27 ) { 804 811 event.target.value = ''; … … 932 939 933 940 // Handles Ajax request for searching through themes in public repo 934 941 search: function( event ) { 942 943 // Tabbing into the search input shouldn't trigger a search 944 if ( event.type === 'keyup' && event.which === 9 ) { 945 return; 946 } 947 935 948 this.collection = this.options.parent.view.collection; 936 949 937 950 // Clear on escape. … … 1085 1098 var $el = $( event.target ), 1086 1099 sort = $el.data( 'sort' ); 1087 1100 1101 // links that trigger sort have a # as the href, we don't want to add that to the url 1102 event.preventDefault(); 1103 1088 1104 // Bail if this is already active 1089 1105 if ( $el.hasClass( this.activeClass ) ) { 1090 1106 return; -
src/wp-admin/theme-install.php
104 104 <div class="wrap"> 105 105 <h2> 106 106 <?php echo esc_html( $title ); ?> 107 <a class="upload add-new-h2"><?php _e( 'Upload Theme' ); ?></a>108 <a class="browse-themes add-new-h2"><?php _ex( 'Browse', 'themes' ); ?></a>107 <a href="#" class="upload add-new-h2"><?php _e( 'Upload Theme' ); ?></a> 108 <a href="#" class="browse-themes add-new-h2"><?php _ex( 'Browse', 'themes' ); ?></a> 109 109 </h2> 110 110 111 111 <div class="upload-theme"> … … 114 114 115 115 <div class="theme-navigation"> 116 116 <span class="theme-count"></span> 117 < span class="theme-section current" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></span>118 < span class="theme-section" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></span>119 < span class="theme-section" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></span>117 <a class="theme-section current" href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a> 118 <a class="theme-section" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a> 119 <a class="theme-section" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a> 120 120 <div class="theme-top-filters"> 121 121 <!--<span class="theme-filter" data-filter="photoblogging">Photography</span> 122 122 <span class="theme-filter" data-filter="responsive-layout">Responsive</span>--> 123 < span class="more-filters"><?php _e( 'Feature Filter' ); ?></span>123 <a class="more-filters" href="#"><?php _e( 'Feature Filter' ); ?></a> 124 124 </div> 125 125 <div class="more-filters-container"> 126 126 <?php