Changeset 28868
- Timestamp:
- 06/27/2014 04:05:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r28777 r28868 363 363 events: { 364 364 'click': themes.isInstall ? 'preview': 'expand', 365 'click .preview': 'preview',366 365 'keydown': themes.isInstall ? 'preview': 'expand', 367 366 'touchend': themes.isInstall ? 'preview': 'expand', … … 488 487 } 489 488 490 // Ap end preview489 // Append preview 491 490 $( 'div.wrap' ).append( preview.el ); 492 491 … … 512 511 } 513 512 514 // Construct a new Preview view. 515 preview = new themes.view.Preview({ 516 model: self.current 517 }); 513 preview.model = self.current; 518 514 519 515 // Render and append. 520 516 preview.render(); 521 517 this.setNavButtonsState(); 522 $( 'div.wrap' ).append( preview.el );523 518 $( '.next-theme' ).focus(); 524 519 }) … … 546 541 } 547 542 548 // Construct a new Preview view. 549 preview = new themes.view.Preview({ 550 model: self.current 551 }); 543 preview.model = self.current; 552 544 553 545 // Render and append. 554 546 preview.render(); 555 547 this.setNavButtonsState(); 556 $( 'div.wrap' ).append( preview.el );557 548 $( '.previous-theme' ).focus(); 558 549 }); … … 787 778 themes.router.navigate( themes.router.baseUrl( '' ) ); 788 779 this.trigger( 'preview:close' ); 780 this.undelegateEvents(); 789 781 this.unbind(); 790 782 return false;
Note: See TracChangeset
for help on using the changeset viewer.