aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/southampton.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/southampton.js')
-rw-r--r--web/js/southampton.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/js/southampton.js b/web/js/southampton.js
index af090d89b..ac7292f5d 100644
--- a/web/js/southampton.js
+++ b/web/js/southampton.js
@@ -120,7 +120,11 @@ $(function(){
$('#category_extra').hide('fast');
var lighting_content =
'<div id="street_light_report" style="margin: 1em 0em 1em 6.5em">Please report Street light problems using the Southampton Street Lighting site at: <a href="http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx">http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx</a></div>';
- $('#form_category_row').after(lighting_content);
+ if ( $('#form_category_row').count ) {
+ $('#form_category_row').after(lighting_content);
+ } else {
+ $('#form_category:parent').after(lighting_content);
+ }
} else {
$('#category_extra').hide('fast');
}