Pholio - finish off making public (ie not logged in) views work

Summary: Fixes T2652. Did some testing post T2691 to see if I could close this and noted an error in the JS if you view the page not logged in. This fixes that error. Everything else I can think of seems to work...? :D

Test Plan: played around with a mock not logged in and got sensible interactions and no errors

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2652

Differential Revision: https://secure.phabricator.com/D6438
This commit is contained in:
Bob Trahan
2013-07-12 12:07:52 -07:00
parent 9838251515
commit 014fba2831

View File

@@ -631,7 +631,9 @@ JX.behavior('pholio-mock-view', function(config) {
}
load_inline_comments();
JX.DOM.invoke(JX.$(config.commentFormID), 'shouldRefresh');
if (config.loggedIn) {
JX.DOM.invoke(JX.$(config.commentFormID), 'shouldRefresh');
}
JX.Stratcom.listen('resize', null, redraw_image);
redraw_image();