LEFT | RIGHT |
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 | 3 |
4 /** | 4 /** |
5 SubApp for the Browser | 5 SubApp for the Browser |
6 | 6 |
7 @module juju | 7 @module juju |
8 @submodule subapps | 8 @submodule subapps |
9 */ | 9 */ |
10 YUI.add('subapp-browser', function(Y) { | 10 YUI.add('subapp-browser', function(Y) { |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 if (!this._viewState.charmID) { | 501 if (!this._viewState.charmID) { |
502 this._detailsVisible(false); | 502 this._detailsVisible(false); |
503 var detailsNode = Y.one('.bws-view-data'); | 503 var detailsNode = Y.one('.bws-view-data'); |
504 if (detailsNode) { | 504 if (detailsNode) { |
505 detailsNode.hide(); | 505 detailsNode.hide(); |
506 } | 506 } |
507 // Clean up any details we've got. | 507 // Clean up any details we've got. |
508 if (this._details) { | 508 if (this._details) { |
509 this._details.destroy({remove: true}); | 509 this._details.destroy({remove: true}); |
510 } | 510 } |
| 511 |
| 512 // Update the activeID on the editorial/search results. |
| 513 if (this._editorial) { |
| 514 this._editorial.set('activeID', null); |
| 515 } |
| 516 if (this._search) { |
| 517 this._search.set('activeID', null); |
| 518 } |
| 519 |
| 520 |
| 521 |
511 } | 522 } |
512 | 523 |
513 // Sync that the state has changed. | 524 // Sync that the state has changed. |
514 this._saveState(); | 525 this._saveState(); |
515 next(); | 526 next(); |
516 }, | 527 }, |
517 | 528 |
518 /** | 529 /** |
519 Dispatch to the correct viewmode based on the route that was hit. | 530 Dispatch to the correct viewmode based on the route that was hit. |
520 | 531 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 'querystring', | 679 'querystring', |
669 'sub-app', | 680 'sub-app', |
670 'subapp-browser-charmview', | 681 'subapp-browser-charmview', |
671 'subapp-browser-editorial', | 682 'subapp-browser-editorial', |
672 'subapp-browser-fullscreen', | 683 'subapp-browser-fullscreen', |
673 'subapp-browser-minimized', | 684 'subapp-browser-minimized', |
674 'subapp-browser-searchview', | 685 'subapp-browser-searchview', |
675 'subapp-browser-sidebar' | 686 'subapp-browser-sidebar' |
676 ] | 687 ] |
677 }); | 688 }); |
LEFT | RIGHT |