Changeset 45524 for trunk/src/js/media/views/frame/post.js
- Timestamp:
- 06/12/2019 09:02:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/frame/post.js
r43309 r45524 291 291 } 292 292 293 // Keep focus inside media modal 294 // after canceling a gallery 293 // Move focus to the modal after canceling a Gallery. 295 294 this.controller.modal.focusManager.focus(); 296 295 } … … 318 317 frame.close(); 319 318 } 319 320 // Move focus to the modal after canceling an Audio Playlist. 321 this.controller.modal.focusManager.focus(); 320 322 } 321 323 }, … … 342 344 frame.close(); 343 345 } 346 347 // Move focus to the modal after canceling a Video Playlist. 348 this.controller.modal.focusManager.focus(); 344 349 } 345 350 }, … … 359 364 360 365 this.content.set( view ); 361 362 if ( ! wp.media.isTouchDevice ) {363 view.url.focus();364 }365 366 }, 366 367 … … 484 485 }) ); 485 486 486 this.controller.setState('gallery-edit');487 488 // Keep focus inside media modal 489 // after jumping to gallery view487 // Jump to Edit Gallery view. 488 this.controller.setState( 'gallery-edit' ); 489 490 // Move focus to the modal after jumping to Edit Gallery view. 490 491 this.controller.modal.focusManager.focus(); 491 492 } … … 514 515 }) ); 515 516 516 this.controller.setState('playlist-edit');517 518 // Keep focus inside media modal 519 // after jumping to playlist view517 // Jump to Edit Audio Playlist view. 518 this.controller.setState( 'playlist-edit' ); 519 520 // Move focus to the modal after jumping to Edit Audio Playlist view. 520 521 this.controller.modal.focusManager.focus(); 521 522 } … … 544 545 }) ); 545 546 546 this.controller.setState('video-playlist-edit');547 548 // Keep focus inside media modal 549 // after jumping to video playlist view547 // Jump to Edit Video Playlist view. 548 this.controller.setState( 'video-playlist-edit' ); 549 550 // Move focus to the modal after jumping to Edit Video Playlist view. 550 551 this.controller.modal.focusManager.focus(); 551 552 } … … 617 618 state.trigger('reset'); 618 619 controller.setState('gallery-edit'); 620 // Move focus to the modal when jumping back from Add to Gallery to Edit Gallery view. 621 this.controller.modal.focusManager.focus(); 619 622 } 620 623 } … … 674 677 state.trigger('reset'); 675 678 controller.setState('playlist-edit'); 679 // Move focus to the modal when jumping back from Add to Audio Playlist to Edit Audio Playlist view. 680 this.controller.modal.focusManager.focus(); 676 681 } 677 682 } … … 728 733 state.trigger('reset'); 729 734 controller.setState('video-playlist-edit'); 735 // Move focus to the modal when jumping back from Add to Video Playlist to Edit Video Playlist view. 736 this.controller.modal.focusManager.focus(); 730 737 } 731 738 }
Note: See TracChangeset
for help on using the changeset viewer.