Quicksand - update title while navigating about

Summary: Fixes T7744. Also fixes a bug where we were copying the response object erroneously; that's not necessary to move around since we cleanly initialize it for each load

Test Plan: from user profile, clicked feed tab and saw new title. clicked calendar tab and saw new title. clicked back and saw feed title and page render.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7744

Differential Revision: https://secure.phabricator.com/D12487
This commit is contained in:
Bob Trahan
2015-04-21 11:01:05 -07:00
parent 80b23b21f3
commit 2fab72d43b
4 changed files with 29 additions and 20 deletions

View File

@@ -341,6 +341,14 @@ JX.behavior('durable-column', function(config, statics) {
}
});
JX.Stratcom.listen(
'quicksand-redraw',
null,
function (e) {
var new_data = e.getData().newResponse;
JX.Title.setTitle(new_data.title);
});
_updateColumnVisibility();
});