Clean up initialization of Differential Show More Behavior in Maniphest

Summary:
add a static variable to the method and use it so we don't init more
than once!

Test Plan:
add a "phlog" and noted only init'd one time.   verified "show more"
links worked correctly.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Maniphest Tasks: T666

Differential Revision: https://secure.phabricator.com/D1553
This commit is contained in:
Bob Trahan
2012-02-02 15:21:30 -08:00
parent 2ff36b7cad
commit e15b3fc6f3
8 changed files with 68 additions and 25 deletions

View File

@@ -167,6 +167,8 @@ class AphrontDefaultApplicationConfiguration
'edit/(?P<id>\d+)/$' => 'ManiphestTaskEditController',
'descriptionchange/(?P<id>\d+)/$' =>
'ManiphestTaskDescriptionChangeController',
'descriptiondiff/$' =>
'ManiphestTaskDescriptionDiffController',
'descriptionpreview/$' =>
'ManiphestTaskDescriptionPreviewController',
),