Changeset 26778
- Timestamp:
- 12/07/2013 07:51:35 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r26767 r26778 340 340 // and adds a corresponding class if it's true 341 341 screenshotCheck: function( el ) { 342 var screenshot, image , width;342 var screenshot, image; 343 343 344 344 screenshot = el.find( '.screenshot img' ); … … 348 348 // Width check 349 349 if ( image.width && image.width <= 300 ) { 350 350 el.addClass( 'small-screenshot' ); 351 351 } 352 352 } … … 635 635 baseUrl: function( url ) { 636 636 return themes.data.settings.root + url; 637 },638 639 // Set the search input value based on url640 search: function( query ) {641 $( '.theme-search' ).val( query );642 self.themes.doSearch( query );643 637 } 644 638 }); … … 683 677 684 678 routes: function() { 685 var self = this;686 679 // Bind to our global thx object 687 680 // so that the object is available to sub-views
Note: See TracChangeset
for help on using the changeset viewer.