diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 11:57:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 11:57:21 +0100 |
commit | a04abdebaf280cbfbad65fabb2c64d88f9e3d72c (patch) | |
tree | 0adcfeb9a4e11737417eee488038b7894c9f50c2 /perllib/FixMyStreet/App/Controller | |
parent | 45f6e7e798b203df12938c4b06976fa310173093 (diff) |
Get header JS <script> out of code and into templates.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 1 | ||||
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Questionnaire.pm | 1 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 1 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 17 |
4 files changed, 0 insertions, 20 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index eef805da8..4aa37aa08 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -196,7 +196,6 @@ sub display_location : Private { clickable => 1, pins => \@pins, ); - $c->stash->{map_js} = FixMyStreet::Map::header_js(); } return 1; diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm index ba714a736..f6d7299b3 100755 --- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm +++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm @@ -266,7 +266,6 @@ sub display : Private { colour => $problem->state eq 'fixed' ? 'green' : 'red', } ], ); - $c->stash->{map_js} = FixMyStreet::Map::header_js(); $c->stash->{cobrand_form_elements} = $c->cobrand->form_elements('questionnaireForm'); } diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 82d83e318..b6f336ffa 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -162,7 +162,6 @@ sub generate_map_tags : Private { } ] : [], ); - $c->stash->{map_js} = FixMyStreet::Map::header_js(); return 1; } diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index ba864eca4..e113517f9 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -77,9 +77,6 @@ all_pins: related to map display - not relevant to creation of a new report sub report_new : Path : Args(0) { my ( $self, $c ) = @_; - # set up the page - $c->forward('setup_page'); - # create the report - loading a partial if available $c->forward('initialize_report'); @@ -270,20 +267,6 @@ sub report_import : Path('/import') { return 1; } -=head2 setup_page - -Setup the page - notably add the map js to the stash - -=cut - -sub setup_page : Private { - my ( $self, $c ) = @_; - - $c->stash->{extra_js_verbatim} = FixMyStreet::Map::header_js(); - - return 1; -} - =head2 initialize_report Create the report and set up some basics in it. If there is a partial report |