aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-26 11:57:21 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-26 11:57:21 +0100
commita04abdebaf280cbfbad65fabb2c64d88f9e3d72c (patch)
tree0adcfeb9a4e11737417eee488038b7894c9f50c2 /perllib/FixMyStreet/App/Controller/Report
parent45f6e7e798b203df12938c4b06976fa310173093 (diff)
Get header JS <script> out of code and into templates.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm17
1 files changed, 0 insertions, 17 deletions
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